Skip to content

Commit

Permalink
fix: S1007
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed May 4, 2023
1 parent c1ab73d commit b3c440c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions language.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func (ls Languages) Less(i, j int) bool {
return ls[i].Code > ls[j].Code
}

var reShebangEnv = regexp.MustCompile("^#! *(\\S+/env) ([a-zA-Z]+)")
var reShebangLang = regexp.MustCompile("^#! *[.a-zA-Z/]+/([a-zA-Z]+)")
var reShebangEnv = regexp.MustCompile(`^#! *(\S+/env) ([a-zA-Z]+)`)
var reShebangLang = regexp.MustCompile(`^#! *[.a-zA-Z/]+/([a-zA-Z]+)`)

// Exts is the definition of the language name, keyed by the extension for each language.
var Exts = map[string]string{
Expand Down

0 comments on commit b3c440c

Please sign in to comment.