Skip to content

Commit

Permalink
🎨 update page path length
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 7, 2018
1 parent 836aeef commit 97128f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/tale/validators/CommonValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void valid(Contents param) {
Validators.lessThan(MAX_TEXT_COUNT).test(param.getContent()).throwIfInvalid("文章内容");

if (StringKit.isNotEmpty(param.getSlug())) {
if (param.getSlug().length() < 5) {
if (param.getSlug().length() < 2) {
throw new ValidatorException("路径太短了");
}
if (!TaleUtils.isPath(param.getSlug())) {
Expand Down

0 comments on commit 97128f0

Please sign in to comment.