diff --git a/src/xml/1.0/ed5.ts b/src/xml/1.0/ed5.ts index 06547e3..451d68f 100644 --- a/src/xml/1.0/ed5.ts +++ b/src/xml/1.0/ed5.ts @@ -55,12 +55,10 @@ export const S_LIST = [SPACE, NL, CR, TAB]; * @returns ``true`` if the codepoint matches ``CHAR``. */ export function isChar(c: number): boolean { - return (c === TAB || - c === NL || - c === CR || - (c >= SPACE && c <= 0xD7FF) || - (c >= 0xE000 && c <= 0xFFFD) || - (c >= 0x10000 && c <= 0x10FFFF)); + return (c > SPACE && c <= 0xD7FF) || + S_LIST.includes(c) || + (c >= 0xE000 && c <= 0xFFFD) || + (c >= 0x10000 && c <= 0x10FFFF); } /**