Convert filename regexes to single-quoted strings

This commit is contained in:
Justin Su
2026-03-08 16:31:22 -04:00
parent 184dd259e9
commit dc10f6d53c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
filetype: ruby filetype: ruby
detect: 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( |$)" header: "^#!.*/(env +)?ruby( |$)"
rules: rules: