Skip to content

Commit

Permalink
fix: The length of the tag should between 1 and 50 (langgenius#8187) (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
hwzhuhao authored and lau-td committed Oct 23, 2024
1 parent fd9c9f5 commit 2d7223d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/console/tag/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def _validate_name(name):
if not name or len(name) < 1 or len(name) > 40:
if not name or len(name) < 1 or len(name) > 50:
raise ValueError("Name must be between 1 to 50 characters.")
return name

Expand Down

0 comments on commit 2d7223d

Please sign in to comment.