From 3eefb3cce6e84c1c1c1ccca111683d3ad502760b Mon Sep 17 00:00:00 2001 From: Dyllon Gagnier Date: Fri, 29 Jan 2021 07:26:25 -0800 Subject: [PATCH] Fix backtracking issue with regex (#5401) There was an unnecessary --- core/modules/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters.js b/core/modules/filters.js index 2925c515e..1a3c6f451 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -78,7 +78,7 @@ function parseFilterOperation(operators,filterString,p) { nextBracketPos = filterString.indexOf(">",p); break; case "/": // regexp brackets - var rex = /^((?:[^\\\/]*|\\.)*)\/(?:\(([mygi]+)\))?/g, + var rex = /^((?:[^\\\/]|\\.)*)\/(?:\(([mygi]+)\))?/g, rexMatch = rex.exec(filterString.substring(p)); if(rexMatch) { operator.regexp = new RegExp(rexMatch[1], rexMatch[2]);