diff --git a/backend/functions/src/schema/scalars/imageUrl.ts b/backend/functions/src/schema/scalars/imageUrl.ts index 2a5b9db..6ef7dd9 100644 --- a/backend/functions/src/schema/scalars/imageUrl.ts +++ b/backend/functions/src/schema/scalars/imageUrl.ts @@ -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"