diff options
author | StefanVukovic99 <stefanvukovic44@gmail.com> | 2023-12-29 04:02:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 03:02:51 +0000 |
commit | 580983b9b8a17965db1466aa08cad3c96b06022e (patch) | |
tree | 914760e326ffc4b1acf8ddcddbd5006ae762babf /ext/js/background | |
parent | 8d5d2152e4295fdcefa6ef283204c92df1f81305 (diff) |
search resolution option (#436)
* add search resolution setting
* move finding next substring to method
* use regex literal
* fix comments
* fix comments
* add options update function
* update test
Diffstat (limited to 'ext/js/background')
-rw-r--r-- | ext/js/background/backend.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index ae78a97b..68d4e0c8 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -2417,7 +2417,8 @@ export class Backend { convertHiraganaToKatakana, convertKatakanaToHiragana, collapseEmphaticSequences, - textReplacements: textReplacementsOptions + textReplacements: textReplacementsOptions, + searchResolution } } = options; const textReplacements = this._getTranslatorTextReplacements(textReplacementsOptions); @@ -2444,6 +2445,7 @@ export class Backend { convertHiraganaToKatakana, convertKatakanaToHiragana, collapseEmphaticSequences, + searchResolution, textReplacements, enabledDictionaryMap, excludeDictionaryDefinitions |