Closed MichaelRSilva closed 4 years ago
The code on line 367 of the main.go file regexp.MustCompile("input:([a-z0-9-_]+)\\s*[><==]\\s*[0-9]+")
was not understanding the symbol "==" as a single symbol, as it was enclosed in square brackets.
Just change or adjust the regex regexp.MustCompile("input:([a-z0-9-_]+)\\s*([><]|==|!=)\\s*[0-9]+")
for both equality == and inequality != to work as expected.
The ruller-dsl-feature-flag doesn't behave as expected when there is a rule that compares numbers with the equality operator: input:age == 79.
Examples:
This works well
This doesn't work well
The code needs to be adjusted for the equality between numbers to work as expected.