From 1db8dd8d674229c102cd5839f56e5e50068fb4be Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 10 Dec 2014 20:46:03 -0800 Subject: Fixed linter errors in js/bin/commonmark, js/test.js. --- js/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/test.js') diff --git a/js/test.js b/js/test.js index 5427bbf..73ec450 100755 --- a/js/test.js +++ b/js/test.js @@ -1,4 +1,5 @@ #!/usr/bin/env node +"use strict"; var fs = require('fs'); var commonmark = require('./lib/index.js'); @@ -13,8 +14,8 @@ var failed = 0; var showSpaces = function(s) { var t = s; - return t.replace(/\t/g,'→') - .replace(/ /g,'␣'); + return t.replace(/\t/g, '→') + .replace(/ /g, '␣'); }; fs.readFile('spec.txt', 'utf8', function(err, data) { @@ -30,7 +31,7 @@ fs.readFile('spec.txt', 'utf8', function(err, data) { .replace(/^(.|[\n])*/m, ''); tests.replace(/^\.\n([\s\S]*?)^\.\n([\s\S]*?)^\.$|^#{1,6} *(.*)$/gm, - function(_,markdownSubmatch,htmlSubmatch,sectionSubmatch){ + function(_, markdownSubmatch, htmlSubmatch, sectionSubmatch){ if (sectionSubmatch) { current_section = sectionSubmatch; } else { @@ -79,4 +80,3 @@ fs.readFile('spec.txt', 'utf8', function(err, data) { console.timeEnd("Elapsed time"); }); - -- cgit v1.2.3