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
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: