Skip to content

Commit c92c6c7

Browse files
authored
Merge pull request #46 from shaarli/hotfix/php-7.3
PHP 7.3: fix regex syntax
2 parents a2387f7 + bdb3f15 commit c92c6c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetscapeBookmarkParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public static function sanitizeTagString($tagString)
375375
$value = preg_replace('/^[[:punct:]]/', '', $value);
376376

377377
// trim all but alphanumeric characters, underscores and non-leading dashes
378-
$value = preg_replace('/[^\p{L}\p{N}-_]++/u', '', $value);
378+
$value = preg_replace('/[^\p{L}\p{N}\-_]++/u', '', $value);
379379

380380
if ($value == '') {
381381
unset($tags[$key]);

0 commit comments

Comments
 (0)