col.str.contains
does not respect case insensitive regex object
#82
Labels
bug
Something isn't working
col.str.contains
does not respect case insensitive regex object
#82
Have you tried latest version of polars?
What version of polars are you using?
0.8.0
What operating system are you using polars on?
Debian
What node version are you using
v18.13.0
Describe your bug.
Using the
str.contains
function of a column doesn't respect the case insensitive flag of a provided regex object.What are the steps to reproduce the behavior?
Use str.contains on a column, providing a regex object created with the
"i"
flag for case insensitivity. Test it on a sample with different casing than the original regex pattern.Example
What is the actual behavior?
The contains function does not match all case variations.
What is the expected behavior?
The contains function should match all variations. Probably by injecting the appropriate
(?i)
and(?-i)
flags for polars to interpret.The text was updated successfully, but these errors were encountered: