FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Match markup file extensions without regard to case by Hashim1999164 · Pull Request #2098 · github/markup · GitHub

/ markup Public

Match markup file extensions without regard to case - #2098

Open
Hashim1999164 wants to merge 1 commit into
github:masterfrom
Hashim1999164:fix/case-insensitive-markup-extensions
Open

Match markup file extensions without regard to case#2098
Hashim1999164 wants to merge 1 commit into
github:masterfrom
Hashim1999164:fix/case-insensitive-markup-extensions

Conversation

Hashim1999164 commented Aug 18, 2026
edited
Loading

Copy link
Copy Markdown

Fixes #2038

When Linguist is not loaded, the renderer picks a format from the filename extension. Interpolating the format regexp into the filename pattern kept the inner expression case sensitive, so README.MD did not match md.

The filename pattern now uses the regexp source with a case insensitive flag, so README.MD and README.Markdown resolve as markdown.

Coverage tests assert uppercase and mixed case markdown extensions still match, while README.txt still does not.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

[Bug] The GHFM previewer fails when its file extension is capitalised.

1 participant


Back | FazBrowse Home | New Git URL