This commit is contained in:
Ferdi Koomen 2021-10-11 14:18:28 +02:00
parent 55aec82b8c
commit b3a08a7c69
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export function getType(value?: string, template?: string): Type {
isNullable: false,
};
const valueClean = stripNamespace(value || '');
const valueClean = decodeURIComponent(stripNamespace(value || ''));
if (/\[.*\]$/g.test(valueClean)) {
const matches = valueClean.match(/(.*?)\[(.*)\]$/);

View File

@ -33,7 +33,7 @@ export function getType(values?: string | string[], template?: string): Type {
return result;
}
const valueClean = stripNamespace(values || '');
const valueClean = decodeURIComponent(stripNamespace(values || ''));
if (/\[.*\]$/g.test(valueClean)) {
const matches = valueClean.match(/(.*?)\[(.*)\]$/);