react-from-dom
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -45,3 +45,3 @@ "use strict"; | ||
} | ||
const attributes = input.replace(/\n/, "").split(/ ?; ?/); | ||
const attributes = input.replace(/\s+/g, "").split(/ ?; ?/); | ||
return attributes.reduce((acc, d) => { | ||
@@ -48,0 +48,0 @@ const [key, value] = d.split(/ ?: ?/); |
{ | ||
"name": "react-from-dom", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Convert HTML/XML source code or DOM nodes to React elements", | ||
@@ -5,0 +5,0 @@ "author": "Gil Barbara <gilbarbara@gmail.com>", |
@@ -7,3 +7,3 @@ export const styleToObject = (input: string): Record<string, any> => { | ||
const attributes = input.replace(/\n/, '').split(/ ?; ?/); | ||
const attributes = input.replace(/\s+/g, '').split(/ ?; ?/); | ||
@@ -10,0 +10,0 @@ return attributes.reduce<Record<string, string | number>>((acc, d: string) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
130452