xml-parser
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -26,3 +26,3 @@ | ||
// strip comments | ||
xml = xml.replace(/<!--.*?-->/g, ''); | ||
xml = xml.replace(/<!--[\s\S]*?-->/g, ''); | ||
@@ -168,2 +168,2 @@ return document(); | ||
} | ||
} | ||
} |
{ | ||
"name": "xml-parser", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"repository": "segmentio/xml-parser", | ||
@@ -5,0 +5,0 @@ "description": "the little xml parser that could", |
@@ -180,1 +180,11 @@ | ||
}) | ||
it('should support multi-line comments', function () { | ||
var node = parse('<a><!-- multi-line\n comment\n test -->foo</a>') | ||
node.root.should.eql({ | ||
"name": "a", | ||
"attributes": {}, | ||
"children": [], | ||
"content": "foo" | ||
}) | ||
}) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
22220
324
1