diff --git a/src/core/filestorage/_dto/filestorage.dto.ts b/src/core/filestorage/_dto/filestorage.dto.ts index 5348060c..8bafe828 100644 --- a/src/core/filestorage/_dto/filestorage.dto.ts +++ b/src/core/filestorage/_dto/filestorage.dto.ts @@ -33,7 +33,7 @@ export class FilestorageCreateDto extends CustomFieldsDto { @IsString() @IsNotEmpty() @ApiProperty({ type: String, default: '/' }) - @Matches(/^\/(\.?[^\/\0]+\/?)+$/, { message: 'Path must be a valid path' }) + @Matches(/^\/(?:\.?[^\/\0]+\/?)+$/, { message: 'Path must be a valid path' }) public path: string; @IsOptional()