grammaregex icon indicating copy to clipboard operation
grammaregex copied to clipboard

Stars in sets of options are considered a valid pattern

Open mpomarlan opened this issue 5 years ago • 0 comments

Example:

grammaregex.verify_pattern("[VERB,**]/") True grammaregex.verify_pattern("[VERB,]/*") True

This happens because the full verify_pattern function is called on each list element, meaning each list element gets matched against a regex for which "*" and "**" are acceptable strings.

mpomarlan avatar Jul 22 '19 14:07 mpomarlan