Changes necessary to make Windows build work
This commit is contained in:
@@ -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 [];
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user