From c818065c69ee1e955fc8ca5425a2e89006399da6 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 19 Nov 2022 09:54:34 -0500 Subject: [PATCH] Update fix to regex library Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2374 --- src/lib/regexanalyzer/regex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/regexanalyzer/regex.js b/src/lib/regexanalyzer/regex.js index 5931d20fd..c45b2e429 100644 --- a/src/lib/regexanalyzer/regex.js +++ b/src/lib/regexanalyzer/regex.js @@ -1022,7 +1022,7 @@ var rnd = function( a, b ){ return Math.round((b-a)*Math.random()+a); }, if ( isRange && escaped === false && ']' === ch ) { isRange = false; - chars.push('-'); + chars.push(range[0], '-'); } if ( isRange )