Skip to content

Commit

Permalink
Fix imageUrl scalar regex check to allow parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Oct 10, 2021
1 parent 48bafaa commit 651a1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/functions/src/schema/scalars/imageUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function validate(value) {
"^(https?:\\/\\/)?" + // protocol
"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
"((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address
"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
"(\\:\\d+)?(\\/[-a-z\\d%_.~+\\(\\)]*)*" + // port and path
"(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
"(\\#[-a-z\\d_]*)?$",
"i"
Expand Down

0 comments on commit 651a1ba

Please sign in to comment.