Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escape special characters in onlyStoryFiles filenames #942

Conversation

JonathanKolnik
Copy link
Contributor

@JonathanKolnik JonathanKolnik commented Mar 7, 2024

onlyStoryFiles filenames that contain special characters are potentially treated as globs during the picomatch evaluation step of TurboSnap

e.g. ./example-(new).stories.js => ./example-\\(new\\).stories.js

This PR escapes those special characters so they are treated as the true filepath and not a glob.

📦 Published PR as canary version: 11.0.6--canary.942.8193875287.0

✨ Test out this PR locally via:

npm install chromatic@11.0.6--canary.942.8193875287.0
# or 
yarn add chromatic@11.0.6--canary.942.8193875287.0

Copy link
Member

@thafryer thafryer left a comment

Choose a reason for hiding this comment

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

LGTM

@JonathanKolnik JonathanKolnik added release Auto: Create a `latest` release when merged patch Auto: Increment the patch version when merged labels Mar 7, 2024
@JonathanKolnik JonathanKolnik added this pull request to the merge queue Mar 7, 2024
Merged via the queue into main with commit 9e43e76 Mar 7, 2024
21 of 25 checks passed
@JonathanKolnik JonathanKolnik deleted the jono/ap-4310-chromatic-is-not-capturing-all-affected-stories-when branch March 7, 2024 19:38
@ghengeveld
Copy link
Member

🚀 PR was released in v11.0.5 🚀

@ghengeveld ghengeveld added the released Verdict: This issue/pull request has been released label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Auto: Increment the patch version when merged release Auto: Create a `latest` release when merged released Verdict: This issue/pull request has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants