Skip to content

Commit 5b8f7d1

Browse files
fix: add the percentage sign as a valid url char (#64)
* fix: add the percentage sign as a valid url char * Update isPath regex to account for all valid path characters * fix: Fix go regex escaping * chore: Bump package.json version to 0.8.6 --------- Co-authored-by: Alexandre Bouchard <[email protected]>
1 parent ed32d8a commit 5b8f7d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hookdeck-cli",
3-
"version": "0.8.5",
3+
"version": "0.8.6",
44
"description": "Hookdeck CLI",
55
"repository": {
66
"type": "git",

pkg/listen/listen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ func Listen(URL *url.URL, source_alias string, connection_query string, flags Fl
118118
}
119119

120120
func isPath(value string) (bool, error) {
121-
is_path, err := regexp.MatchString("^(/)+([/.a-zA-Z0-9-_]*)$", value)
121+
is_path, err := regexp.MatchString("^(\\/)+([/a-zA-Z0-9-_%\\.\\-\\_\\~\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=\\:\\@]*)$", value)
122122
return is_path, err
123123
}

0 commit comments

Comments
 (0)