summaryrefslogtreecommitdiff
path: root/test/test-options-util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-03 12:12:55 -0500
committerGitHub <noreply@github.com>2021-01-03 12:12:55 -0500
commit8e304b83c685dde17a00d402877a21303b7c11f2 (patch)
tree0b2123575502c3e3cb5127582b03e9c196c9891d /test/test-options-util.js
parenteda8534e195d653ee0dea36f70caed0d8d49acf1 (diff)
Translator regex replacements (#1199)
* Add support for regex replacements during the translation process * Allow assignment of textReplacements * Rename * Set up test data * Write expected data * Set up options * Prevent infinite loop if regex matches empty string * Implement setting controller * Add support for testing pattern replacements
Diffstat (limited to 'test/test-options-util.js')
-rw-r--r--test/test-options-util.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-options-util.js b/test/test-options-util.js
index c78540cb..ca5f5065 100644
--- a/test/test-options-util.js
+++ b/test/test-options-util.js
@@ -394,7 +394,11 @@ function createProfileOptionsUpdatedTestData1() {
convertAlphabeticCharacters: 'false',
convertHiraganaToKatakana: 'false',
convertKatakanaToHiragana: 'variant',
- collapseEmphaticSequences: 'false'
+ collapseEmphaticSequences: 'false',
+ textReplacements: {
+ searchOriginal: true,
+ groups: []
+ }
},
dictionaries: {},
parsing: {
@@ -502,7 +506,7 @@ function createOptionsUpdatedTestData1() {
}
],
profileCurrent: 0,
- version: 7,
+ version: 8,
global: {
database: {
prefixWildcardsSupported: false