π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix: endswith
Nevo Davida7ed9f981a41
diff --git a/libraries/helpers/src/utils/valid.url.path.ts b/libraries/helpers/src/utils/valid.url.path.tsindex d7c18931e..469f82293 100644--- a/libraries/helpers/src/utils/valid.url.path.ts+++ b/libraries/helpers/src/utils/valid.url.path.ts@@ -8,11 +8,11 @@ import {export class ValidUrlExtension implements ValidatorConstraintInterface {validate(text: string, args: ValidationArguments) {return (- text.endsWith('.png') ||- text.endsWith('.jpg') ||- text.endsWith('.jpeg') ||- text.endsWith('.gif') ||- text.endsWith('.mp4')+ text?.endsWith('.png') ||+ text?.endsWith('.jpg') ||+ text?.endsWith('.jpeg') ||+ text?.endsWith('.gif') ||+ text?.endsWith('.mp4'));}