Changes necessary to make Windows build work

This commit is contained in:
Scott Nonnenberg 2020-02-19 17:44:03 -08:00
parent 011e31be93
commit 148aedeeb4
3 changed files with 7 additions and 5 deletions

View file

@ -1,11 +1,11 @@
diff --git a/node_modules/typo-js/typo.js b/node_modules/typo-js/typo.js
index 68c285b..11710a1 100644
index 68c285b..95ebc6c 100644
--- a/node_modules/typo-js/typo.js
+++ b/node_modules/typo-js/typo.js
@@ -431,7 +431,7 @@ Typo.prototype = {
dictionaryTable[word] = null;
}
- if (rules.length > 0) {
+ if (rules && rules.length > 0) {
if (dictionaryTable[word] === null) {
@ -15,7 +15,7 @@ index 68c285b..11710a1 100644
else if (this.flags.FLAG === "num") {
return textCodes.split(",");
}
+ return [];
+ return [];
},
/**