Comparing version 0.4.2 to 0.4.3-experimental.1
@@ -6,5 +6,11 @@ // Copyright 2020 Masataka Kurihara. All rights reserved. MIT license. | ||
const i = qName.indexOf(':'); | ||
const q = i < 0 ? ['', qName] : qName.split(':'); | ||
this._prefix = q[0]; | ||
this._localPart = q[1]; | ||
if (i < 0) { | ||
this._prefix = ''; | ||
this._localPart = qName; | ||
} | ||
else { | ||
const q = qName.split(':'); | ||
this._prefix = q[0]; | ||
this._localPart = q[1]; | ||
} | ||
} | ||
@@ -11,0 +17,0 @@ get qName() { |
{ | ||
"name": "@tejp/xmlp", | ||
"version": "0.4.2", | ||
"version": "0.4.3-experimental.1", | ||
"description": "Typescript XML parser (SAX and PullParser)", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/sth/xmlp.git", |
127829
3520