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

Let longest filename pattern set the filetype #2167

Merged
merged 1 commit into from Jul 22, 2019

Conversation

@ntrel
Copy link
Member

commented May 31, 2019

Longer filename patterns in filetype_extensions.conf are more specific, so they should override shorter patterns.

  • Fixes #1921 - *.js.aspx should override *.aspx.
  • Fixes #1499 - .bashrc should override *rc.
Use g_pattern_match_simple as GPatternSpec is only used once.
@ntrel ntrel force-pushed the ntrel:longest-ext branch from 86f2ac4 to d821418 Jun 10, 2019
@ntrel

This comment has been minimized.

Copy link
Member Author

commented Jun 10, 2019

Rebased now #2166 is merged, to hide that pull's commits from the diff.

@ntrel ntrel merged commit b67ec3d into geany:master Jul 22, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ntrel ntrel deleted the ntrel:longest-ext branch Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.