summarylogtreecommitdiffstats
path: root/use-system-dictionaries.patch
diff options
context:
space:
mode:
authorml2020-02-04 20:29:01 +0100
committerml2020-02-04 20:29:01 +0100
commit8de47c86199ca240462bc0804a909d5c746df05f (patch)
treeada7b8d4ef80030957a395c46b9ac219c6051f7f /use-system-dictionaries.patch
parentc7a69eee425466136eaff7f52faac5dbc85d69e5 (diff)
downloadaur-8de47c86199ca240462bc0804a909d5c746df05f.tar.gz
updpkg: rocketchat-desktop 2.17.5-2
Diffstat (limited to 'use-system-dictionaries.patch')
-rw-r--r--use-system-dictionaries.patch11
1 files changed, 10 insertions, 1 deletions
diff --git a/use-system-dictionaries.patch b/use-system-dictionaries.patch
index fe7e9a323193..9e74973e2cb3 100644
--- a/use-system-dictionaries.patch
+++ b/use-system-dictionaries.patch
@@ -1,6 +1,15 @@
diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
--- package.orig/src/scripts/spellChecking.js 2020-02-04 20:01:17.366294000 +0100
-+++ package.new/src/scripts/spellChecking.js 2020-02-04 20:02:48.469827846 +0100
++++ package.new/src/scripts/spellChecking.js 2020-02-04 20:26:35.530104166 +0100
+@@ -74,7 +74,7 @@
+ const registerSpellCheckingDictionary = async (dictionary) => {
+ let args;
+ try {
+- const dictionaryPath = path.join(dictionariesPath, `${ dictionary.replace(/_/g, '-') }.bdic`);
++ const dictionaryPath = path.join(dictionariesPath, `${dictionary}.bdic`);
+ args = [dictionary, await fs.promises.readFile(dictionaryPath)];
+ } catch (error) {
+ args = [dictionary];
@@ -117,11 +117,7 @@
export const setupSpellChecking = async () => {
const embeddedDictionaries = getAvailableDictionaries();