Skip to content

Commit

Permalink
change regex to 0-256 chars
Browse files Browse the repository at this point in the history
Signed-off-by: jowg-amazon <jowg@amazon.com>
  • Loading branch information
jowg-amazon committed Apr 5, 2024
1 parent 6ed40de commit 150413f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ data class DocLevelQuery(
const val QUERY_FIELD_NAMES_FIELD = "query_field_names"
const val NO_ID = ""
val INVALID_CHARACTERS: List<String> = listOf(" ", "[", "]", "{", "}", "(", ")")
val QUERY_NAME_REGEX = "^.{1,256}$".toRegex() // regex to restrict string length to 1-256 chars
val QUERY_NAME_REGEX = "^.{0,256}$".toRegex() // regex to restrict string length 256 chars

@JvmStatic
@Throws(IOException::class)
Expand Down

0 comments on commit 150413f

Please sign in to comment.