From e8b4c488dd5955bafa3fbdbd71cb125f67486415 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 20 Dec 2023 00:37:34 -0500 Subject: Declare static fields using modern JavaScript syntax (#400) --- ext/js/general/regex-util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/js/general/regex-util.js') 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; -- cgit v1.2.3