mirror of https://github.com/calzoneman/sync.git
Fix the regex warning message about parentheses
This commit is contained in:
parent
992c8d8da9
commit
3fcb855c35
|
@ -2136,11 +2136,11 @@ function checkEntitiesInStr(str) {
|
||||||
">": ">",
|
">": ">",
|
||||||
'"': """,
|
'"': """,
|
||||||
"'": "'",
|
"'": "'",
|
||||||
"(": "(",
|
"\\(": "(",
|
||||||
")": ")"
|
"\\)": ")"
|
||||||
};
|
};
|
||||||
|
|
||||||
var m = str.match(/([&<>"'\(\)])/);
|
var m = str.match(/([&<>"']|\\\(|\\\))/);
|
||||||
if (m && m[1] in entities) {
|
if (m && m[1] in entities) {
|
||||||
return { src: m[1], replace: entities[m[1]] };
|
return { src: m[1], replace: entities[m[1]] };
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue