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
This is indeed a bug. It's probably related to literal optimizations that are ignoring the smart case flag. For example, this works even though it's using a regex:
(Although, I wonder if making pure regexes case insensitive even when smart case is enabled is desirable. Maybe it should only activate if there's at least one literal byte? Not sure, but that's a separate issue I guess.)
Smart casing works great if you use --fixed-strings. However, once you use --regexp or -w, it falls apart:
For example, this code does not match "ToCsvFile" in any file.
Same with -w. Doesn't work:
But begins matching with --ignore-case.
The text was updated successfully, but these errors were encountered: