π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: invalid url
Nevo David569c43354cc6
diff --git a/libraries/helpers/src/utils/valid.url.path.ts b/libraries/helpers/src/utils/valid.url.path.tsindex 5abf2aa61..8022ecc6e 100644--- a/libraries/helpers/src/utils/valid.url.path.ts+++ b/libraries/helpers/src/utils/valid.url.path.ts@@ -7,7 +7,7 @@ export class ValidUrlPath implements ValidatorConstraintInterface {return true;}- return text.indexOf(process.env.RESTRICT_UPLOAD_DOMAINS) > -1;+ return (text || 'invalid url').indexOf(process.env.RESTRICT_UPLOAD_DOMAINS) > -1;}defaultMessage(args: ValidationArguments) {