@@ -223,10 +223,13 @@ if (sToken.gl_count("-") > 4) { return true; } return sToken.split("-").every(sWord => this.isValid(sWord)); } + if (sToken.includes("·")) { + return true; + } return false; } isValid (sWord) { // checks if sWord is valid (different casing tested if the first letter is a capital) @@ -237,13 +240,10 @@ sWord = sWord.replace("’", "'"); } if (this.lookup(sWord)) { return true; } - if (sWord.gl_isDigit()) { - return true; - } if (sWord.charAt(0).gl_isUpperCase()) { if (sWord.length > 1) { if (sWord.gl_isTitle()) { return !!this.lookup(sWord.toLowerCase()); } @@ -255,10 +255,13 @@ } return !!this.lookup(sWord.slice(0, 1).toLowerCase() + sWord.slice(1)); } else { return !!this.lookup(sWord.toLowerCase()); } + } + if (sWord.slice(0,1).gl_isDigit()) { + return true; } return false; } _convBytesToInteger (aBytes) {