Update spellCheck.js

changed directory name
This commit is contained in:
Alexey Golubev
2016-03-31 11:52:17 +03:00
parent 5e49e63ed0
commit 3311bd4a0a

View File

@ -37,7 +37,7 @@ var arrDictionaries = {};
for (var indexDict = 0, lengthDict = arrDictionariesConfig.length; indexDict < lengthDict; ++indexDict) {
oDictTmp = arrDictionariesConfig[indexDict];
oDictName = oDictTmp.name;
pathTmp = __dirname + '/../Dictionaries/' + oDictName + '/' + oDictName + '.';
pathTmp = __dirname + '/../dictionaries/' + oDictName + '/' + oDictName + '.';
arrDictionaries[oDictTmp.id] = new nodehun(fs.readFileSync(pathTmp + 'aff'), fs.readFileSync(pathTmp + 'dic'));
}
})();
@ -156,4 +156,4 @@ exports.spellSuggest = function (type, word, lang, callbackFunction) {
callbackFunction(suggestions);
});
}
};
};