Skip to content

Commit

Permalink
Fix Unicode bug in HTML export
Browse files Browse the repository at this point in the history
  • Loading branch information
jomority authored and muxator committed Aug 11, 2019
1 parent 161a38e commit 0a8e325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/utils/ExportHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ exports._analyzeLine = function(text, aline, apool){


exports._encodeWhitespace = function(s){
return s.replace(/[^\x21-\x7E\s\t\n\r]/g, function(c){
return "&#" +c.charCodeAt(0) + ";";
return s.replace(/[^\x21-\x7E\s\t\n\r]/gu, function(c){
return "&#" +c.codePointAt(0) + ";";
});
};

0 comments on commit 0a8e325

Please sign in to comment.