Skip to content

Conversation

@grgcnnr
Copy link
Contributor

@grgcnnr grgcnnr commented Apr 4, 2025

This PR adds a regex to the splitFilters function to only split the filter string on colons OUTSIDE of parens ()

so that /m/400x300/filters:focal(150x100:250x200) gets extracted to

filters: {
	focal: "150x100:250x200",
}

rather than... crashing :)

closes #170

@grgcnnr grgcnnr changed the title update splitfilters in storyblok provider to not split on colons inside focal() filter [fix] update splitfilters in storyblok provider to not split on colons inside focal() filter Apr 4, 2025
@grgcnnr grgcnnr changed the title [fix] update splitfilters in storyblok provider to not split on colons inside focal() filter fix(storyblok): update splitfilters in storyblok provider to not split on colons inside focal() filter Apr 4, 2025
Copy link
Owner

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just one comment

@grgcnnr grgcnnr requested a review from ascorbic April 5, 2025 01:30
Copy link
Owner

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

🦋 Changeset detected

Latest commit: 1ca23c5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
unpic Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Update the splitfilters logic in the Storyblok provider to prevent splitting on colons within the focal() filter.
@ascorbic ascorbic merged commit ceba8e6 into ascorbic:main Nov 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[providers/storyblok] Storyblok focal point filter trips up splitfilters()

2 participants