Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented new control functions not_match, not equal #77

Merged
merged 7 commits into from
Jul 17, 2023

Conversation

phempel
Copy link
Contributor

@phempel phempel commented Feb 27, 2023

  • implemented new control function not_equal to check if a string or number is not eqaul to other values
  • implemented new control function not_match to check if a string does not match a regex

see #67452

Philipp Hempel added 2 commits February 24, 2023 17:00
@@ -317,6 +318,11 @@ func (loader *Loader) Render(
"match": func(regex, text string) (bool, error) {
return regexp.Match(regex, []byte(text))
},
"not_match": func(regex, text string) (bool, error) {
match, err := regexp.Match(regex, []byte(text))
pp.Println("not_match -", match, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das muss raus :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

erledigt

@mad-pf mad-pf merged commit d614cf3 into master Jul 17, 2023
1 check passed
@mad-pf mad-pf deleted the apitest-control-not_match-not_equal-67452 branch July 17, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants