修复一处typo

This commit is contained in:
Peng-YM 2020-12-10 22:16:55 +08:00
parent a6bf4e5c76
commit fbfc1084fa
2 changed files with 4 additions and 4 deletions

View File

@ -3076,10 +3076,10 @@ function clone(object) {
function buildRegex(str, ...options) {
options = options.join("");
if (str.startsWith("(?i)")) {
str = str.substring(4);
str = str.substr(4);
return new RegExp(str, 'i' + options);
} else {
return new RegExp(str + options);
return new RegExp(str, options);
}
}

File diff suppressed because one or more lines are too long