Skip to content

Commit

Permalink
fix: fixing attribute's subpath starting with colon
Browse files Browse the repository at this point in the history
  • Loading branch information
Patricio Albizu authored and Patricio Albizu committed Oct 24, 2023
1 parent 3170394 commit f286522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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\-\.\:]/);

Check warning on line 80 in projects/components/src/filtering/filter/parser/parsed-filter.ts

View check run for this annotation

Codecov / codecov/patch

projects/components/src/filtering/filter/parser/parsed-filter.ts#L80

Added line #L80 was not covered by tests
const subpath =
firstNonSubpathCharacterIndex === -1
? potentialSubpath
Expand Down

0 comments on commit f286522

Please sign in to comment.