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
Defining a filter based on regexes, i.e. using re/from_re/to_re, assumes a string
is passed in. runtest then uses re.compile on the string to create the regex object.
I think this should be extended to allow passing a regex object (that is, the result of re.compile)
directly.
As as example, to match "Foo" case-insensitive the following currently works:
Defining a filter based on regexes, i.e. using
re
/from_re
/to_re
, assumes a stringis passed in.
runtest
then usesre.compile
on the string to create the regex object.I think this should be extended to allow passing a regex object (that is, the result of
re.compile
)directly.
As as example, to match "Foo" case-insensitive the following currently works:
see: https://docs.python.org/3/library/re.html#regular-expression-syntax
The following does not, but I think it should:
especially because passing flags modifying regexes looks less obscure.
The text was updated successfully, but these errors were encountered: