Skip to content

Commit

Permalink
Prevent invalid xml chars (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
neexite authored Nov 5, 2021
1 parent 1331e98 commit 4ea1283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ DataInputBinding.prototype.constructor = DataInputBinding;
DataInputBinding.superclass = DataBinding.prototype;


DataInputBinding.invalidXmlChar = /[^\x09\x0A\x0D\x20-\xD7FF\xE000-\xFFFD\x10000-x10FFFF]/gi;
DataInputBinding.invalidXmlChar = /((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g;

/**
* @class
Expand Down

0 comments on commit 4ea1283

Please sign in to comment.