mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
fix: li tag click bug #984
This commit is contained in:
+1
-1
@@ -178,7 +178,7 @@ function replace_symbols(text) {
|
||||
// replace symbols with underscore
|
||||
return text
|
||||
.replace(/, /g, ',')
|
||||
.replace(/[&\/\\#,.+=$~%'":*?<>{}\ \]\[]/g, "-")
|
||||
.replace(/[&\!\/\\#,.+=$~%'":*?<>{}\ \]\[]/g, "-")
|
||||
.replace(/[()]/g, '');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user