Add length-check for the character token when ignoring a line-feed character after <textarea>
This commit is contained in:
@@ -248,6 +248,9 @@
|
||||
if (token.isCharacterToken) {
|
||||
NSString *characters = token.asCharacterToken.characters;
|
||||
if ([characters characterAtIndex:0] == 0x000A) {
|
||||
if (characters.length <= 1) {
|
||||
return;
|
||||
}
|
||||
token = [token.asCharacterToken tokenByTrimmingFormIndex:1];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user