Skip to content

Commit

Permalink
fix a regexp typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 committed Mar 10, 2024
1 parent 2d80269 commit 2348544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/extend_click_vc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ if (dataset && (
timer = toRegister.length > 0 ? setTimeout_(next, InnerConsts.DelayForNext) : 0
ETP[kAEL] = myAEL
FProto[kToS] = myToStr
if (host && !(<RegExpOne> /\.(bing\.com|google\.com(\.\w+)?)$/).test("." + host)) {
if (host && !(<RegExpOne> /\.(?:bing\.com|google\.com(?:\.\w+)?)$/).test("." + host)) {
try { evaledAEL = new Function(`let ${kAEL}=(f,a)=>f(...a)\nreturn ` + kAEL)() } catch {}
}
for (let i of [0, 2] as const) { /*#__ENABLE_SCOPED__*/
Expand Down
2 changes: 1 addition & 1 deletion scripts/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ exports.fill_global_defs = (global_defs, btypes) => {
exports.replace_global_defs = (global_defs, code) => {
const keys = Object.keys(global_defs).join("|")
if (!keys) { return code }
const keyRe = new RegExp(`\\b${keys}\\b`, "g")
const keyRe = new RegExp(`\\b(?:${keys})\\b`, "g")
/** @type {[start: number, end: number, value: any][]} */
const to_replace = []
let match
Expand Down

0 comments on commit 2348544

Please sign in to comment.