-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(validation): Update task name and description regex patterns
- Updated the regex pattern for TASK_NAME to ensure: - Minimum of 3 characters and a maximum of 50 characters. - No leading or trailing spaces. - No consecutive spaces. - Updated the regex pattern for TASK_DESCRIPTION to ensure: - A maximum of 500 characters. - No leading or trailing spaces. - No consecutive spaces. New patterns: - const TASK_NAME_REGEX = /^(?!.*\s{2,})(?!\s)(.{2,50}?)(?<!\s)$/; - const TASK_DESCRIPTION_REGEX = /^(?!.*\s{2,})(?!\s)(.{0,500}?)(?<!\s)$/;
- Loading branch information
Showing
2 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters