Overview
| Comment: | [graphspell][js][bug] spellchecker: dictionary not always a filename string |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | graphspell | multid |
| Files: | files | file ages | folders |
| SHA3-256: |
ae469535bca09f05f6587bcdb9c6348a |
| User & Date: | olr on 2018-02-17 11:31:08 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-02-18
| ||
| 10:13 | [tb] merge trunk: fix bugs check-in: bce8dea5b0 user: olr tags: tb, multid | |
|
2018-02-17
| ||
| 11:50 | [build][graphspell][core] build with options to integrate extended and personal dictionaries check-in: e0d79cdbf4 user: olr tags: trunk, core, build, graphspell | |
| 11:31 | [graphspell][js][bug] spellchecker: dictionary not always a filename string check-in: ae469535bc user: olr tags: graphspell, multid | |
| 10:13 | [graphspell] spellchecker: handling exception when loading dictionary file check-in: c075441c64 user: olr tags: graphspell, multid | |
Changes
Modified graphspell-js/spellchecker.js from [2310ecd9b2] to [567dbb14f5].
| ︙ | |||
47 48 49 50 51 52 53 54 55 56 57 58 59 60 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | + |
if (typeof(require) !== 'undefined') {
return new ibdawg.IBDAWG(dictionary); // dictionary can be a filename or a JSON object
} else {
return new IBDAWG(dictionary, sPath); // dictionary can be a filename or a JSON object
}
}
catch (e) {
let sfDictionary = (typeof(dictionary) == "string") ? dictionary : dictionary.sLangName + "/" + dictionary.sFileName;
if (bNecessary) {
throw "Error: <" + sfDictionary + "> not loaded. " + e.message;
}
console.log("Error: <" + sfDictionary + "> not loaded.")
console.log(e.message);
return null;
}
|
| ︙ |