mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fixed spacing problem in operators
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
This commit is contained in:
parent
1412c1f84e
commit
e94479717c
1 changed files with 3 additions and 0 deletions
|
@ -183,6 +183,9 @@ func validateValueWithStringPattern(log logr.Logger, value interface{}, pattern
|
|||
|
||||
operator := operator.GetOperatorFromStringPattern(pattern)
|
||||
pattern = pattern[len(operator):]
|
||||
// remove leading and trailing white spaces before
|
||||
// getting numerical and string parts
|
||||
pattern = strings.TrimSpace(pattern)
|
||||
number, str := getNumberAndStringPartsFromPattern(pattern)
|
||||
|
||||
if "" == number {
|
||||
|
|
Loading…
Add table
Reference in a new issue