Skip to content

Commit

Permalink
add + to our regex (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Apr 8, 2024
1 parent 9775167 commit f565191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func ValidateText(text string) error {
}

// Regular expression to validate text
textPattern := regexp.MustCompile(`^[a-zA-Z0-9 .,;:?!'"\-_/()\[\]]+$`)
textPattern := regexp.MustCompile(`^[a-zA-Z0-9 +.,;:?!'"\-_/()\[\]]+$`)

// Check if the URL matches the regular expression
if !textPattern.MatchString(text) {
Expand Down

0 comments on commit f565191

Please sign in to comment.