Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Fix comparison for final codepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mschnee committed Oct 1, 2018
1 parent 05de693 commit c4e0272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lib/cell/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const validXmlRegex = /[\u0009\u000a\u000d\u0020-\uD7FF\uE000-\uFFFD]/u;
function removeInvalidXml(str) {
return Array.from(str).map(c => {
const cp = c.codePointAt(0);
if (cp >= 65536 && cp < 1114111) {
if (cp >= 65536 && cp <= 1114111) {
return c
} else if (c.match(validXmlRegex)) {
return c;
Expand Down

0 comments on commit c4e0272

Please sign in to comment.