@govbr-ds/webcomponents 1.4.1-alpha.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26528,7 +26528,7 @@ var parsePropStringToJSON = function parsePropStringToJSON(prop) {
|
|
|
26528
26528
|
try {
|
|
26529
26529
|
if (typeof prop === 'string') {
|
|
26530
26530
|
// Tratando a prop passando um string em formato JSON
|
|
26531
|
-
return JSON.parse(prop.replaceAll(/(\
|
|
26531
|
+
return JSON.parse(prop.replaceAll(/(\s*?{\s*?|\s*?,\s*?)(['"])?([a-zA-Z0-9]+)(['"])?:/g, "$1'$3':").replaceAll("'", '"'));
|
|
26532
26532
|
} else if (typeof_typeof(prop) === 'object') {
|
|
26533
26533
|
/*
|
|
26534
26534
|
A prop pode ser passada como um objeto através de property (não como atributo).
|