aboutsummaryrefslogtreecommitdiff
path: root/ext/js/general
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-20 00:37:34 -0500
committerGitHub <noreply@github.com>2023-12-20 05:37:34 +0000
commite8b4c488dd5955bafa3fbdbd71cb125f67486415 (patch)
treef3e5ed3ec5de4d5d33f4c5902eb4d0961cdd42e9 /ext/js/general
parente56f03901f21fa8f44725b6a68d3d0dca1e9cd34 (diff)
Declare static fields using modern JavaScript syntax (#400)
Diffstat (limited to 'ext/js/general')
-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;