Skip to content

Commit cffad1d

Browse files
committed
Update helper_seo.php
1 parent d085356 commit cffad1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/class/helper/helper_seo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public static function get_seosetting($page, $data = array(), $defset = array())
4747

4848

4949
public static function strreplace_strip_split($searchs, $replaces, $str) {
50-
$searchspace = array('((\s*\-\s*)+)', '((\s*\,\s*)+)', '((\s*\|\s*)+)', '((\s*\t\s*)+)', '((\s*_\s*)+)');
51-
$replacespace = array('-', ',', '|', ' ', '_');
50+
$searchspace = array('(((\s)*\-(\s)*)+)', '(((\s)*\,(\s)*)+)', '(((\s)*\|(\s)*)+)', '(((\s)*\t(\s)*)+)', '(((\s)*_(\s)*)+)');
51+
$replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
5252
return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
5353
}
5454

@@ -111,4 +111,4 @@ public static function base64_transform($type, $prefix, $string, $suffix) {
111111
}
112112
}
113113

114-
?>
114+
?>

0 commit comments

Comments
 (0)