File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @dbushell/xml-streamify" ,
3- "version" : " 0.6.2 " ,
3+ "version" : " 0.7.0 " ,
44 "exports" : {
55 "." : " ./mod.ts" ,
66 "./node" : " ./src/node.ts" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @dbushell/xml-streamify" ,
3- "version" : " 0.6.2 " ,
3+ "version" : " 0.7.0 " ,
44 "repository" : {
55 "type" : " git" ,
66 "url" : " git+https://github.com/dbushell/xml-streamify.git"
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export async function* parse(
7373 }
7474 // Handle elements
7575 if ( type === NodeType . ELEMENT ) {
76- const name = value . match ( / < \/ ? ( [ \w : . ] + ) / ) ! [ 1 ] ;
76+ const name = value . match ( / < \/ ? ( [ \w : . - ] + ) / ) ! [ 1 ] ;
7777 // Handle self-closing element
7878 if ( value . endsWith ( '/>' ) ) {
7979 const newNode = new Node ( name , node , value ) ;
You can’t perform that action at this time.
0 commit comments