From 3e408c0f2828c04db6183ed2afb98166dd4edfd0 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 1 Dec 2019 23:41:10 +0000 Subject: [PATCH] allow dashes in block IDs --- core/block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/block.php b/core/block.php index 70c8c690..6f70aaaf 100644 --- a/core/block.php +++ b/core/block.php @@ -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)); } /**