Skip to content

Commit

Permalink
allow forward slash in github search query
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanhawari committed Feb 24, 2022
1 parent b807ce8 commit 16d6fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var Regex386 = `(?i)(i?386|x86_32|amd32|x32)`
var RegexGithub = `(?i)^[A-Za-z0-9\-]+\/[A-Za-z0-9\_\.\-]+(@.+)?$`

// RegexGithubSearch is a regular express for valid GitHub search queries
var RegexGithubSearch = `(?i)^[/A-Za-z0-9\_\.\-]+$`
var RegexGithubSearch = `(?i)^[A-Za-z0-9\_\.\-\/]+$`

// RegexURL is a regular express for valid URLs
var RegexURL = `(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])`

0 comments on commit 16d6fdb

Please sign in to comment.