fix typo on comment

This commit is contained in:
Baltazar Gomez 2019-10-12 16:04:40 -06:00 committed by Sean Yesmunt
parent 2ceea79236
commit 89eb28f2d2

View file

@ -14,7 +14,7 @@ const invalidRegex = /[-_.+=?!@#$%^&*:;,{}<>\w/\\]/;
function locateMention(value, fromIndex) {
var index = value.indexOf(mentionToken, fromIndex);
// skip intervalid mention
// Skip invalid mention
if (index > 0 && invalidRegex.test(value.charAt(index - 1))) {
return locateMention(value, index + 1);
}