diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-20 00:37:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 05:37:34 +0000 |
commit | e8b4c488dd5955bafa3fbdbd71cb125f67486415 (patch) | |
tree | f3e5ed3ec5de4d5d33f4c5902eb4d0961cdd42e9 /ext/js/data | |
parent | e56f03901f21fa8f44725b6a68d3d0dca1e9cd34 (diff) |
Declare static fields using modern JavaScript syntax (#400)
Diffstat (limited to 'ext/js/data')
-rw-r--r-- | ext/js/data/anki-util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/js/data/anki-util.js b/ext/js/data/anki-util.js index 1d5272a6..4717d472 100644 --- a/ext/js/data/anki-util.js +++ b/ext/js/data/anki-util.js @@ -22,6 +22,9 @@ import {isObject} from '../core.js'; * This class has some general utility functions for working with Anki data. */ export class AnkiUtil { + /** @type {RegExp} @readonly */ + static _markerPattern = /\{([\w-]+)\}/g; + /** * Gets the root deck name of a full deck name. If the deck is a root deck, * the same name is returned. Nested decks are separated using '::'. @@ -84,6 +87,3 @@ export class AnkiUtil { ); } } - -// eslint-disable-next-line no-underscore-dangle -AnkiUtil._markerPattern = /\{([\w-]+)\}/g; |