allow dashes in block IDs
This commit is contained in:
parent
18be03997a
commit
3e408c0f28
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Block
|
|||
if (is_null($id)) {
|
||||
$id = (empty($header) ? md5($body) : $header) . $section;
|
||||
}
|
||||
$this->id = preg_replace('/[^\w]/', '', str_replace(' ', '_', $id));
|
||||
$this->id = preg_replace('/[^\w-]/', '', str_replace(' ', '_', $id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue