1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 02:02:21 +00:00

fix: li tag click bug #984

This commit is contained in:
ruanyf 2020-05-14 16:44:18 +08:00
parent 18e372d162
commit 55cbbb8da9

View File

@ -178,7 +178,7 @@ function replace_symbols(text) {
// replace symbols with underscore
return text
.replace(/, /g, ',')
.replace(/[&\/\\#,.+=$~%'":*?<>{}\ \]\[]/g, "-")
.replace(/[&\!\/\\#,.+=$~%'":*?<>{}\ \]\[]/g, "-")
.replace(/[()]/g, '');
}