From f286522f8019cb2166a16db79b7db0ad6f77f9b8 Mon Sep 17 00:00:00 2001 From: Patricio Albizu Date: Tue, 24 Oct 2023 16:21:51 -0300 Subject: [PATCH] fix: fixing attribute's subpath starting with colon --- .../components/src/filtering/filter/parser/parsed-filter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/components/src/filtering/filter/parser/parsed-filter.ts b/projects/components/src/filtering/filter/parser/parsed-filter.ts index a9e42de83..265fd84b2 100644 --- a/projects/components/src/filtering/filter/parser/parsed-filter.ts +++ b/projects/components/src/filtering/filter/parser/parsed-filter.ts @@ -77,7 +77,7 @@ export const tryParseStringForAttribute = ( } const potentialSubpath = stringAfterAttributeName.slice(MAP_LHS_DELIMITER.length); // Subpaths support alphanumeric, -, - and . characters - const firstNonSubpathCharacterIndex = potentialSubpath.search(/[^\w\-\.]/); + const firstNonSubpathCharacterIndex = potentialSubpath.search(/[^\w\-\.\:]/); const subpath = firstNonSubpathCharacterIndex === -1 ? potentialSubpath