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

Fix erroneous file extension getter #1453

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

yent
Copy link
Contributor

@yent yent commented Apr 26, 2023

File extension getter was returning erroneous extension in the case of a directory whose name contains a dot with an extension-less file inside. Example : a v1.6 folder containing a OUT file, the javascript file's name property is v1.6/OUT, thus the getExtension was returning 6/OUT, which does not match the file extension regexp and was thus banned. This fix strips the path from the file name before splitting the basename and the extension.

File extension getter was returning erroneous extension in the case of a directory whose name contains a dot with an extension-less file inside. Example : a `v1.6` folder containing a `OUT` file, the javascript file's name property is `v1.6/OUT`, thus the `getExtension` was returning `6/OUT`, which does not match the file extension regexp and was thus banned. This fix strips the path from the file name before splitting the basename and the extension.
@github-actions
Copy link

If there are selenium UI results for this code they will be at filesenderuici@8d77015

@monkeyiq
Copy link
Contributor

Looks good. Thank you for the fix!

@monkeyiq monkeyiq merged commit 10f66c9 into filesender:development Apr 26, 2023
6 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.

None yet

2 participants