Comparing version 2.3.3 to 2.4.0
17
index.js
@@ -33,3 +33,12 @@ var attrToProp = require('hyperscript-attribute-to-property') | ||
if (xstate === ATTR) xstate = ATTR_KEY | ||
p.push([ VAR, xstate, arg ]) | ||
if (xstate === OPEN) { | ||
if (reg === '/') { | ||
p.push([ OPEN, '/', arg ]) | ||
reg = '' | ||
} else { | ||
p.push([ OPEN, arg ]) | ||
} | ||
} else { | ||
p.push([ VAR, xstate, arg ]) | ||
} | ||
parts.push.apply(parts, p) | ||
@@ -152,3 +161,3 @@ } else parts.push.apply(parts, parse(strings[i])) | ||
} else if (c === '>' && !quot(state) && state !== COMMENT) { | ||
if (state === OPEN) { | ||
if (state === OPEN && reg.length) { | ||
res.push([OPEN,reg]) | ||
@@ -180,3 +189,5 @@ } else if (state === ATTR_KEY) { | ||
} else if (state === OPEN && /\s/.test(c)) { | ||
res.push([OPEN, reg]) | ||
if (reg.length) { | ||
res.push([OPEN, reg]) | ||
} | ||
reg = '' | ||
@@ -183,0 +194,0 @@ state = ATTR |
{ | ||
"name": "hyperx", | ||
"version": "2.3.3", | ||
"version": "2.4.0", | ||
"description": "tagged template string virtual dom builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
35883
37
929