Skip to content

Commit

Permalink
change to 0-256 chars
Browse files Browse the repository at this point in the history
Signed-off-by: Joanne Wang <[email protected]>
  • Loading branch information
jowg-amazon committed Apr 5, 2024
1 parent 135bae5 commit cd50847
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class RestIndexMonitorAction : BaseRestHandler() {

// allowed characters [- : , ( ) [ ] ' _]
private val allowedChars = "-:,\\(\\)\\[\\]\'_"
// regex to restrict string to alphanumeric and allowed chars, must be between 1 - 256 characters
val regex = "[\\w\\s$allowedChars]{1,256}"
// regex to restrict string to alphanumeric and allowed chars, must be between 0 - 256 characters
val regex = "[\\w\\s$allowedChars]{0,256}"

override fun getName(): String {
return "index_monitor_action"
Expand Down

0 comments on commit cd50847

Please sign in to comment.