Merge pull request #14106 from calixteman/names
Empty name is allowed in ISO 32000
This commit is contained in:
commit
56e3ef68d4
@ -1116,8 +1116,6 @@ class Lexer {
|
|||||||
}
|
}
|
||||||
if (strBuf.length > 127) {
|
if (strBuf.length > 127) {
|
||||||
warn(`Name token is longer than allowed by the spec: ${strBuf.length}`);
|
warn(`Name token is longer than allowed by the spec: ${strBuf.length}`);
|
||||||
} else if (strBuf.length === 0) {
|
|
||||||
warn("Name token is empty.");
|
|
||||||
}
|
}
|
||||||
return Name.get(strBuf.join(""));
|
return Name.get(strBuf.join(""));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user