Skip to content

Commit

Permalink
Merge pull request #6193 from Rob--W/long-name-is-warning-not-error
Browse files Browse the repository at this point in the history
Issue a warning instead of an error for long Names
  • Loading branch information
timvandermeij committed Jul 10, 2015
2 parents 5af49f8 + 456ad43 commit 6c1906f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,8 @@ var Lexer = (function LexerClosure() {
strBuf.push(String.fromCharCode(ch));
}
}
if (strBuf.length > 128) {
error('Warning: name token is longer than allowed by the spec: ' +
strBuf.length);
if (strBuf.length > 127) {
warn('name token is longer than allowed by the spec: ' + strBuf.length);
}
return Name.get(strBuf.join(''));
},
Expand Down

0 comments on commit 6c1906f

Please sign in to comment.