We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a161531 commit 02e3ef8Copy full SHA for 02e3ef8
src/core/filestorage/_dto/filestorage.dto.ts
@@ -33,7 +33,7 @@ export class FilestorageCreateDto extends CustomFieldsDto {
33
@IsString()
34
@IsNotEmpty()
35
@ApiProperty({ type: String, default: '/' })
36
- @Matches(/^\/(\.?[^\/\0]+\/?)+$/, { message: 'Path must be a valid path' })
+ @Matches(/^\/(?:\.?[^\/\0]+\/?)+$/, { message: 'Path must be a valid path' })
37
public path: string;
38
39
@IsOptional()
0 commit comments