Skip to content

Commit

Permalink
Merge pull request #1077 from k1LoW/fix-gist
Browse files Browse the repository at this point in the history
Fix hasRemotePrefix ( add prefixGist )
  • Loading branch information
k1LoW authored Nov 17, 2024
2 parents 9fe4b81 + e46cf43 commit 39dca23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (

// hasRemotePrefix returns true if the path has remote file prefix.
func hasRemotePrefix(u string) bool {
return strings.HasPrefix(u, prefixHttps) || strings.HasPrefix(u, prefixGitHub)
return strings.HasPrefix(u, prefixHttps) || strings.HasPrefix(u, prefixGitHub) || strings.HasPrefix(u, prefixGist)
}

// ShortenPath shorten path.
Expand Down

0 comments on commit 39dca23

Please sign in to comment.