@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.
|
@@ -26518,7 +26518,7 @@ var parsePropStringToJSON = function parsePropStringToJSON(prop) {
|
|
|
26518
26518
|
try {
|
|
26519
26519
|
if (typeof prop === 'string') {
|
|
26520
26520
|
// Tratando a prop passando um string em formato JSON
|
|
26521
|
-
return JSON.parse(prop.replaceAll(/(\
|
|
26521
|
+
return JSON.parse(prop.replaceAll(/(\s*?{\s*?|\s*?,\s*?)(['"])?([a-zA-Z0-9]+)(['"])?:/g, "$1'$3':").replaceAll("'", '"'));
|
|
26522
26522
|
} else if (typeof_typeof(prop) === 'object') {
|
|
26523
26523
|
/*
|
|
26524
26524
|
A prop pode ser passada como um objeto através de property (não como atributo).
|