controlling case (in-)sensitivity in glob
timotheecour opened this issue · 3 comments
timotheecour commented
in python, ignoring case seems a bit awkard, eg: https://stackoverflow.com/questions/8151300/ignore-case-in-glob-on-linux
what would be recommended way to have case insensitive glob with this library?
if too awkward to use, maybe we should have a flag to control that?
haltcase commented
I wouldn't think it's that complicated. This could probably work similarly (or even be tied to) to the current isDos
flag in the pattern compiler - default to case insensitivity on Windows but sensitivity otherwise. If we add this we can do it by passing the regex i
flag to the regex
module.
haltcase commented
This turned out to be a bit more complicated than I thought but it's in there 😆
timotheecour commented
awesome! I'll put comment in that PR