Open patrickdepinguin opened 1 year ago
I hit this one too. It's unfortunate for regex, which are almost always raw strings out of habit (even when they don't need to be), e.g.
import re
pat0 = re.compile(r".*")
pat1 = re.compile(r"foo/{}?".format(pat0))
Strings that have a 'r' (raw) prefix are not converted by flynt.
Expected conversion would have prefix
rf
orfr
.