diff options
Diffstat (limited to 'js/lib/blocks.js')
-rw-r--r-- | js/lib/blocks.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js index f965fd7..2939afe 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -16,7 +16,7 @@ var isBlank = function(s) { // Convert tabs to spaces on each line using a 4-space tab stop. var detabLine = function(text) { "use strict"; - if (text.indexOf('\0') !== -1) { + if (text.indexOf('\u0000') !== -1) { // replace NUL for security text = text.replace(/\0/g, '\uFFFD'); } @@ -637,6 +637,7 @@ var processInlines = function(block) { }; var Document = function() { + "use strict"; var doc = new Node('Document', [[1, 1], [0, 0]]); doc.string_content = undefined; doc.strings = []; |