summaryrefslogtreecommitdiff
path: root/ext/js/general/regex-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/general/regex-util.js')
-rw-r--r--ext/js/general/regex-util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/general/regex-util.js b/ext/js/general/regex-util.js
index 62248968..6601e463 100644
--- a/ext/js/general/regex-util.js
+++ b/ext/js/general/regex-util.js
@@ -21,6 +21,9 @@
* This class provides some general utility functions for regular expressions.
*/
export class RegexUtil {
+ /** @type {RegExp} @readonly */
+ static _matchReplacementPattern = /\$(?:\$|&|`|'|(\d\d?)|<([^>]*)>)/g;
+
/**
* Applies string.replace using a regular expression and replacement string as arguments.
* A source map of the changes is also maintained.
@@ -92,6 +95,3 @@ export class RegexUtil {
});
}
}
-
-// eslint-disable-next-line no-underscore-dangle
-RegexUtil._matchReplacementPattern = /\$(?:\$|&|`|'|(\d\d?)|<([^>]*)>)/g;