Merge pull request #4025 from injust/patch-1

Fix unescaped backslashes and expand git-config filename pattern to include `*/git/config`
This commit is contained in:
Jöran Karl
2026-03-09 10:01:41 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
filetype: git-commit
detect:
filename: "^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$"
filename: '^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$'
rules:
# File changes

View File

@@ -1,7 +1,7 @@
filetype: git-config
detect:
filename: "git(config|modules)$|\\.git/config$"
filename: 'git(config|modules)$|^(.*[\\/])?\.?git[\\/]config$'
rules:
- constant: "\\<(true|false)\\>"

View File

@@ -1,7 +1,7 @@
filetype: git-rebase-todo
detect:
filename: "^(.*[\\/])?git\\-rebase\\-todo$"
filename: '^(.*[\\/])?git\-rebase\-todo$'
rules:
# Rebase commands

View File

@@ -1,7 +1,7 @@
filetype: ruby
detect:
filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$"
filename: '\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config\.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\.?[Bb]rewfile)$'
header: "^#!.*/(env +)?ruby( |$)"
rules: