Skip to content

fix: multiple extension filters on macOS#23409

Merged
codebytere merged 1 commit intomasterfrom
fix-multiple-extensions
May 7, 2020
Merged

fix: multiple extension filters on macOS#23409
codebytere merged 1 commit intomasterfrom
fix-multiple-extensions

Conversation

@codebytere
Copy link
Copy Markdown
Member

@codebytere codebytere commented May 5, 2020

Description of Change

Closes #23316.

Fixes an issue whereby macOS would fail to allow file extensions containing periods.macOS, it turns out, is incapable of understanding multiple file extensions, so if something like tar.gz is passed in it will not match files correctly because it natively will throw out anything it doesn't recognize as a valid system extension. We fix this by tokenizing the extension and only passing the final component of the extension (as delimited by .) to macOS.

Tested with https://gist.github.com/7ce9ea238a838bdfb30337ac43daa8a6.

Checklist

Release Notes

Notes: Fixes an issue whereby macOS would fail to allow file extensions containing periods.

@codebytere codebytere requested review from ckerr and zcbenz May 5, 2020 05:05
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label May 5, 2020
@codebytere codebytere force-pushed the fix-multiple-extensions branch from 27c2c17 to f70af1c Compare May 5, 2020 05:08
@codebytere codebytere requested a review from MarshallOfSound May 5, 2020 15:21
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label May 6, 2020
@codebytere codebytere force-pushed the fix-multiple-extensions branch from f70af1c to 9c9b36b Compare May 6, 2020 19:17
@codebytere codebytere merged commit fc434f1 into master May 7, 2020
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented May 7, 2020

Release Notes Persisted

Fixes an issue whereby macOS would fail to allow file extensions containing periods.

@trop
Copy link
Copy Markdown
Contributor

trop bot commented May 7, 2020

I have automatically backported this PR to "8-x-y", please check out #23449

@trop
Copy link
Copy Markdown
Contributor

trop bot commented May 7, 2020

I have automatically backported this PR to "9-x-y", please check out #23450

@trop
Copy link
Copy Markdown
Contributor

trop bot commented May 7, 2020

I have automatically backported this PR to "7-2-x", please check out #23451

@codebytere codebytere deleted the fix-multiple-extensions branch May 7, 2020 15:54
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.

Open dialog filter does not except a file extension of tar.gz

2 participants