Skip to content

Commit

Permalink
Support jbang catalogs. Relates to #18
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Sep 16, 2020
1 parent 603e579 commit 0db4451
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gum/jbang.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"os"
"os/exec"
"path/filepath"
"regexp"
"strings"
)

Expand Down Expand Up @@ -211,7 +212,8 @@ func isLaunchableURL(source string) bool {
if strings.HasPrefix(source, "http") {
return true
}
return false
match, _ := regexp.MatchString(".+@.+", source)
return match
}

func isLaunchableSourceFile(source string) bool {
Expand Down

0 comments on commit 0db4451

Please sign in to comment.