moddle-xml
Advanced tools
Comparing version 7.4.1 to 7.5.0
@@ -9,2 +9,6 @@ # Changelog | ||
## 7.5.0 | ||
* `FEAT`: validate ID attributes are [QNames](http://www.w3.org/TR/REC-xml/#NT-NameChar) | ||
## 7.4.1 | ||
@@ -11,0 +15,0 @@ |
@@ -137,2 +137,6 @@ import { | ||
if (id) { | ||
// for QName validation as per http://www.w3.org/TR/REC-xml/#NT-NameChar | ||
if (!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(id)) { | ||
throw new Error('illegal ID <' + id + '>'); | ||
} | ||
@@ -139,0 +143,0 @@ if (elementsById[id]) { |
{ | ||
"name": "moddle-xml", | ||
"version": "7.4.1", | ||
"version": "7.5.0", | ||
"description": "XML import/export for documents described with moddle", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45149
1342