mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-01 09:33:21 +08:00
修复一处typo
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user