Skip to content

Commit

Permalink
feat: 本地文件上传类型限制,需要支持.xx.xx类型 #2917
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Apr 24, 2024
1 parent 0a61036 commit 95a1a71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class FileUploadSettingReq {
private Integer restrictMode;

@ApiModelProperty("后缀列表")
private List<@Pattern(regexp = "^\\.[A-Za-z0-9_-]{1,24}$",
private List<@Pattern(regexp = "^(\\.[A-Za-z0-9_-]{1,24})+$",
message = "{validation.constraints.InvalidUploadFileSuffix.message}") String> suffixList;

}

0 comments on commit 95a1a71

Please sign in to comment.