mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
WebUI: don't wrap regex literal in regex constructor
This commit is contained in:
parent
3ef4d0d798
commit
95ddeb0dad
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
|||
regexFlags += "i";
|
||||
|
||||
// Setup regex search
|
||||
const regexEscapeExp = new RegExp(/[/\-\\^$*+?.()|[\]{}]/g);
|
||||
const regexEscapeExp = /[/\-\\^$*+?.()|[\]{}]/g;
|
||||
const standardSearch = new RegExp(this._inner_search.replace(regexEscapeExp, "\\$&"), regexFlags);
|
||||
let regexSearch;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue