This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isAfterBoundary(string, i) { | |
// checks if previous char is not alphanumeric | |
if (i === 0) { | |
return false; | |
} else { | |
var cc = string.charCodeAt(i - 1); | |
return !((cc > 47 && cc < 58) || (cc > 64 && cc < 91) || (cc > 96 && cc < 123)); | |
} | |
} |