Skip to content

Commit

Permalink
perf: include is faster than individual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Jun 21, 2019
1 parent bed1c91 commit db94653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml/1.0/ed5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function isChar(c: number): boolean {
* @returns ``true`` if the codepoint matches ``S``.
*/
export function isS(c: number): boolean {
return c === SPACE || c === NL || c === CR || c === TAB;
return S_LIST.includes(c);
}

/**
Expand Down

0 comments on commit db94653

Please sign in to comment.