Skip to content

Commit 88db2b8

Browse files
authored
Merge pull request #26 from epilande/epilande/fix-replaceAll
🐛 Fix replaceAll in webkit
2 parents 3dde4d9 + 7fb2c09 commit 88db2b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/list-tabs-webkit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ function run(args) {
3434
tabIndex: t,
3535
quicklookurl: url,
3636
arg: `${w},${url || title}`,
37-
match: `${title} ${decodeURIComponent(matchUrl).replaceAll(/[^\w]/g, " ")}`,
37+
match: `${title} ${decodeURIComponent(matchUrl).replace(
38+
/[^\w]/g,
39+
" ",
40+
)}`,
3841
};
3942
}
4043
}

src/list-tabs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ function run(args) {
3737
tabIndex: t,
3838
quicklookurl: url,
3939
arg: `${w},${t},${url}`,
40-
match: `${title} ${decodeURIComponent(matchUrl).replace(/[^\w]/g, " ")}`,
40+
match: `${title} ${decodeURIComponent(matchUrl).replace(
41+
/[^\w]/g,
42+
" ",
43+
)}`,
4144
};
4245
}
4346
}

0 commit comments

Comments
 (0)