aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data/options-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-12-18 12:38:39 -0500
committerGitHub <noreply@github.com>2021-12-18 12:38:39 -0500
commit0e52a1f509155673d26a2a1ad00987389a05fea6 (patch)
tree726344c15a28e6d7a43be6df34fbe201d6fee018 /ext/js/data/options-util.js
parent851014a404c6db2b07699382726fd10d028f4828 (diff)
Scanning wildcards (#2042)
* Add scanning.matchTypePrefix option * Update TextScanner to use matchTypePrefix option * Add setting * Update warning
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r--ext/js/data/options-util.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js
index c8ab2d01..7a725005 100644
--- a/ext/js/data/options-util.js
+++ b/ext/js/data/options-util.js
@@ -464,7 +464,8 @@ class OptionsUtil {
{async: true, update: this._updateVersion12.bind(this)},
{async: true, update: this._updateVersion13.bind(this)},
{async: false, update: this._updateVersion14.bind(this)},
- {async: false, update: this._updateVersion15.bind(this)}
+ {async: false, update: this._updateVersion15.bind(this)},
+ {async: false, update: this._updateVersion16.bind(this)}
];
if (typeof targetVersion === 'number' && targetVersion < result.length) {
result.splice(targetVersion);
@@ -888,4 +889,13 @@ class OptionsUtil {
}
return options;
}
+
+ _updateVersion16(options) {
+ // Version 16 changes:
+ // Added scanning.matchTypePrefix.
+ for (const profile of options.profiles) {
+ profile.options.scanning.matchTypePrefix = false;
+ }
+ return options;
+ }
}