xml-parser
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -72,3 +72,3 @@ | ||
debug('tag %j', xml); | ||
var m = match(/^<([\w+:]+)\s*/); | ||
var m = match(/^<([\w+:.]+)\s*/); | ||
if (!m) return; | ||
@@ -107,3 +107,3 @@ | ||
// closing | ||
match(/^<\/[\w:]+>\s*/); | ||
match(/^<\/[\w:.]+>\s*/); | ||
@@ -110,0 +110,0 @@ return node; |
{ | ||
"name": "xml-parser", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"repository": "segmentio/xml-parser", | ||
@@ -5,0 +5,0 @@ "description": "the little xml parser that could", |
@@ -203,1 +203,33 @@ | ||
}) | ||
it('should support tags with a dot', function () { | ||
var node = parse('<root><c:Key.Columns><o:Column Ref="ol1"/></c:Key.Columns><c:Key.Columns><o:Column Ref="ol2"/></c:Key.Columns></root>'); | ||
node.root.should.eql({ | ||
name: "root", | ||
attributes: {}, | ||
children: [{ | ||
name: "c:Key.Columns", | ||
attributes: {}, | ||
children: [{ | ||
name: "o:Column", | ||
attributes: { | ||
Ref: "ol1" | ||
}, | ||
children: [] | ||
}], | ||
content: "" | ||
}, { | ||
name: "c:Key.Columns", | ||
attributes: {}, | ||
children: [{ | ||
name: "o:Column", | ||
attributes: { | ||
"Ref": "ol2" | ||
}, | ||
children: [] | ||
}], | ||
content: "" | ||
}], | ||
content: "" | ||
}) | ||
}) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23043
366
0