Comparing version 1.0.2 to 1.0.3
@@ -53,3 +53,4 @@ /** | ||
var html = dom5.serialize(doc); | ||
var js = contents.join(';'); | ||
// newline + semicolon should be enough to capture all cases of concat | ||
var js = contents.join('\n;'); | ||
@@ -56,0 +57,0 @@ return { |
{ | ||
"name": "crisper", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Make an HTML file with inline scripts CSP compliant", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -75,4 +75,10 @@ /** | ||
test('Newline Semicolon should be used for concating', function() { | ||
var script = obj.js; | ||
var expected = '//inline comment\n;var next_statement'; | ||
var actual = script.indexOf(expected); | ||
assert(actual > -1); | ||
}); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
10047
125