mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Empty name is allowed in ISO 32000
- the exact sentence from the spec: "The token SOLIDUS (a slash followed by no regular characters) introduces a unique valid name defined by the empty sequence of characters." - so just remove the warning.
This commit is contained in:
parent
da8df646f5
commit
f384ad2356
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue