Skip to content

Commit

Permalink
fix regex validation redis 6
Browse files Browse the repository at this point in the history
  • Loading branch information
errcmd committed Jan 18, 2022
1 parent 0c9bcee commit 11f9d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/elasticache/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

const (
redisVersionPreV6RegexpRaw = `[1-5](\.[[:digit:]]+){2}`
redisVersionPostV6RegexpRaw = `([6-9]|[[:digit:]]{2})\.x`
redisVersionPostV6RegexpRaw = `([6-9]|[[:digit:]]{2})\([[:digit:]]+|x)`

redisVersionRegexpRaw = redisVersionPreV6RegexpRaw + "|" + redisVersionPostV6RegexpRaw
)
Expand Down

0 comments on commit 11f9d0b

Please sign in to comment.