Fixes mentions-parser to ignore alphabetic characters

This commit is contained in:
Maxi Redigonda 2018-11-20 20:10:35 -03:00
parent e1dffaef16
commit e28e1bbeb1
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class MentionsParser {
parsingLink = true;
parsingType = PARSING_MENTION;
parsingSegment = '';
} else if(!this.isAlphanumeric(character) && parsingLink){
} else if(!this.isDigit(character) && parsingLink){
ans += this.compileSegment(parsingSegment, parsingType);
parsingLink = false;
@ -34,8 +34,8 @@ class MentionsParser {
return ans;
}
isAlphanumeric(string){
return /[a-zA-Z0-9]/.test(string);
isDigit(string){
return /[0-9]/.test(string);
}
compileSegment(segment, parsingType){