You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on rivescript-php i was porting your checkSyntax function.
if ($line !~ /^.+?\s*(==|eq|!=|ne|<>|<|<=|>|>=)\s*.+?=>.+?$/) {
return"Invalid format for !Condition: should be like `* value symbol value => response`";
}
This does not validate the usage of the == | != | ne | <> | < | <= | > | >= | characters.
The following script gets passed validation while the syntax of whats supposed to be eq male now says bleep male.
+ set gender
- <set gender=male>thank you
+ what is my gender
* <get gender> bleep male => You told me you were a boy.
* <get gender> eq female => You told me you were a girl.
- You never told me what you were.
I have tested this in the live testing environment as well and i didn't get any errors.
The text was updated successfully, but these errors were encountered:
Hi!,
While working on rivescript-php i was porting your checkSyntax function.
This does not validate the usage of the == | != | ne | <> | < | <= | > | >= | characters.
The following script gets passed validation while the syntax of whats supposed to be
eq male
now saysbleep male
.I have tested this in the live testing environment as well and i didn't get any errors.
The text was updated successfully, but these errors were encountered: