Skip to content

Commit dc10f6d

Browse files
committed
Convert filename regexes to single-quoted strings
1 parent 184dd25 commit dc10f6d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

runtime/syntax/git-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-commit
22

33
detect:
4-
filename: "^(.*[\\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$"
4+
filename: '^(.*[\/])?(COMMIT_EDITMSG|TAG_EDITMSG|MERGE_MSG)$'
55

66
rules:
77
# File changes

runtime/syntax/git-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-config
22

33
detect:
4-
filename: "git(config|modules)$|^(.*[\\/])?\\.?git[\\/]config$"
4+
filename: 'git(config|modules)$|^(.*[\/])?\.?git[\/]config$'
55

66
rules:
77
- constant: "\\<(true|false)\\>"

runtime/syntax/git-rebase-todo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: git-rebase-todo
22

33
detect:
4-
filename: "^(.*[\\/])?git\\-rebase\\-todo$"
4+
filename: '^(.*[\/])?git\-rebase\-todo$'
55

66
rules:
77
# Rebase commands

runtime/syntax/ruby.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
filetype: ruby
22

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

77
rules:

0 commit comments

Comments
 (0)