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

Support files without an extension in XDG portal filters #215

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

kjarosh
Copy link
Contributor

@kjarosh kjarosh commented Sep 6, 2024

Due to the glob being used ("*.{file_extension}"), there was no possibility to include files without a dot in their name when using filters. The glob "*" is now used when an empty filter ("") or a match-all filter ("*") is specified, which replaces globs "*." and "*.*" respectively. The glob "*." did not make sense, as it matched files ending with a dot, and "*.*" did not match files without an extension (which are quite popular on Linux).

See ruffle-rs/ruffle#17776.

Due to the glob being used ("*.{file_extension}"), there was no
possibility to include files without a dot in their name when using filters.
The glob "*" is now used when an empty filter ("") or a match-all
filter ("*") is specified, which replaces globs "*." and "*.*" respectively.
The glob "*." did not make sense, as it matched files ending with a dot,
and "*.*" did not match files without an extension (which are quite popular on Linux).
Copy link
Owner

@PolyMeilex PolyMeilex left a comment

Choose a reason for hiding this comment

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

Sounds good, thanks!

@PolyMeilex PolyMeilex merged commit e0e725e into PolyMeilex:master Sep 6, 2024
13 checks passed
@kjarosh kjarosh deleted the xdg-no-extension branch September 6, 2024 19:28
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.

2 participants