Comparing version 2.0.1 to 2.0.2
@@ -35,4 +35,4 @@ const mismatch = require('mismatch'); | ||
const matches = mismatch(re, string, ['attributes', 'v', 'v1', 'v2', 'content']) | ||
const res = matches.map(({ attributes = '', content = '' }) => { | ||
const matches = mismatch(re, string, ['a', 'v', 'v1', 'v2', 'c']) | ||
const res = matches.map(({ 'a': attributes = '', 'c': content = '' }) => { | ||
const attrs = attributes.replace(/\/$/, '').trim() | ||
@@ -53,3 +53,3 @@ const props = extractProps(attrs) | ||
const props = m | ||
.reduce((acc, { key, val }) => { | ||
.reduce((acc, { 'key': key, 'val': val }) => { | ||
if (!val) { | ||
@@ -56,0 +56,0 @@ acc[key] = true |
@@ -0,1 +1,7 @@ | ||
## 20 June 2019 | ||
### [2.0.2](https://github.com/artdecocode/rexml/compare/v2.0.1...v2.0.2) | ||
- [fix] Quote `mismatch` properties for _Depack_. | ||
## 14 June 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "rexml", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Simple XML parsing with a regular expression.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -35,4 +35,4 @@ import mismatch from 'mismatch' | ||
const matches = mismatch(re, string, ['attributes', 'v', 'v1', 'v2', 'content']) | ||
const res = matches.map(({ attributes = '', content = '' }) => { | ||
const matches = mismatch(re, string, ['a', 'v', 'v1', 'v2', 'c']) | ||
const res = matches.map(({ 'a': attributes = '', 'c': content = '' }) => { | ||
const attrs = attributes.replace(/\/$/, '').trim() | ||
@@ -53,3 +53,3 @@ const props = extractProps(attrs) | ||
const props = m | ||
.reduce((acc, { key, val }) => { | ||
.reduce((acc, { 'key': key, 'val': val }) => { | ||
if (!val) { | ||
@@ -56,0 +56,0 @@ acc[key] = true |
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
51953