Merge pull request #14106 from calixteman/names

Empty name is allowed in ISO 32000
This commit is contained in:
Tim van der Meij 2021-10-09 14:29:10 +02:00 committed by GitHub
commit 56e3ef68d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1116,8 +1116,6 @@ class Lexer {
}
if (strBuf.length > 127) {
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(""));
}