diff --git a/crayon_langs.class.php b/crayon_langs.class.php index 651f55c8..ade1811b 100644 --- a/crayon_langs.class.php +++ b/crayon_langs.class.php @@ -337,7 +337,7 @@ function __construct($id, $name = NULL) { // Override function clean_id($id) { $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) ); - return preg_replace('/[^\w-+#]/msi', '', $id); + return preg_replace('/[^\w\-+#]/msi', '', $id); } function ext($ext = NULL) { @@ -543,4 +543,4 @@ function path($path = NULL) { } } -?> \ No newline at end of file +?>