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

Replace unsafe characters in screenshot file names #336

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

bearfriend
Copy link
Contributor

Windows has a set a characters that are not allowed in file paths, so we should remove them before naming the screenshot files. Linux doesn't allow / but that's already included.

This approach replaces each character with a -, which leaves a small possibility of conflicts, but I think the suggestion would just be to be more specific in that case.

@bearfriend bearfriend requested a review from a team as a code owner March 11, 2024 15:46
@bearfriend bearfriend changed the title Split on all unsafe characters Replace unsafe characters in screenshot file names Mar 11, 2024
Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

This will be somewhat "breaking" in that goldens will get renamed, but probably fine.

@bearfriend
Copy link
Contributor Author

This will be somewhat "breaking" in that goldens will get renamed, but probably fine.

Yeah, hopefully since no one has brought this up it won't affect anyone yet

@bearfriend bearfriend merged commit a6070d0 into main Mar 11, 2024
3 checks passed
@bearfriend bearfriend deleted the dgleckler/name-conversion branch March 11, 2024 16:00
Copy link

🎉 This PR is included in version 1.13.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants