diff options
author | 2019-02-07 20:49:22 +0100 | |
---|---|---|
committer | 2019-02-07 20:49:22 +0100 | |
commit | 75fc8f0867f222e1918c1ea430aeb26be9390fda (patch) | |
tree | 31d9a187bb5d8c8dbcab2c01b6a1cfefe8f84f9e /src/webview | |
parent | Spellcheck language autodetection (diff) | |
download | ferdium-app-75fc8f0867f222e1918c1ea430aeb26be9390fda.tar.gz ferdium-app-75fc8f0867f222e1918c1ea430aeb26be9390fda.tar.zst ferdium-app-75fc8f0867f222e1918c1ea430aeb26be9390fda.zip |
improved fuzzy search
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/spellchecker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js index c711382be..9158b3b94 100644 --- a/src/webview/spellchecker.js +++ b/src/webview/spellchecker.js | |||
@@ -85,7 +85,7 @@ export function disable() { | |||
85 | } | 85 | } |
86 | 86 | ||
87 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier) { | 87 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier) { |
88 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter(key => key.split('-')[0] === identifier); | 88 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter(key => key === identifier.toLowerCase() || key.split('-')[0] === identifier.toLowerCase()); |
89 | 89 | ||
90 | if (locales.length >= 1) { | 90 | if (locales.length >= 1) { |
91 | return locales[0]; | 91 | return locales[0]; |