-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Should also support upper-case README files #20581
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I think it's not necessary to make the ext name case-insensitive, it's not bad to do so.
For the record, it's for something like ".zh_CN.md" so "README.zh_cn.md" will also be okay. Also maybe some DOS fans will also find it be useful so "README.MD" can be accepted :) It's not required in the current code base through since |
make L-G-T-M work |
* giteaofficial/main: Rework mailer settings (go-gitea#18982) Add default value for clone URLs (go-gitea#20600) [skip ci] Updated translations via Crowdin docs: zh-cn translations for fail2ban setup (go-gitea#20588) Should also support upper-case README files (go-gitea#20581) Fix typos in backup documentation (go-gitea#20567)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Address the issue introduced in #20508 (79741dd), also added some case in existing test that cover this issue.
IsReadmeFileExtension
only match the lower-casereadme
file, and also require the extensions use the same caption case as the provided ones, soREADME.md
andreadme.MD
will no longer be supported. After this patch, it will be once again become supported.