We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You should be more restrictive here - don't allow any unsafe-file-name characters,
const unsafeRegex = /[^A-Za-z0-9_]/g;
Best would be to find Cypress's pattern (from their source) and copy it here.
Originally posted by @ivailop in #6 (comment)
I briefly checked Cypress's code and couldn't find where they construct/cleanup the files name. However, based on existing conventions:
255
Following that the code should be:
const unsafeRegex = /[^A-Za-z0-9._-\w]/g; var imageBasename = testFullName.replaceAll(unsafeRegex, '').substring(0, 242)+' (failed).png';
Originally posted by @ivailop #6 (review)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Best would be to find Cypress's pattern (from their source) and copy it here.
Originally posted by @ivailop in #6 (comment)
I briefly checked Cypress's code and couldn't find where they construct/cleanup the files name. However, based on existing conventions:
255
(including extension) characters - see https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitationsFollowing that the code should be:
Originally posted by @ivailop #6 (review)
The text was updated successfully, but these errors were encountered: