-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Description
Here's a awkward one that just cost me a lot of time 😞
I'm using this pattern to skip over lines I don't care about:
knownLines = # some parser
otherStuff = Suppress(Word(printables))
parser = OneOrMore(knownLines | otherStuff)
It wasn't working for some inputs which come from web requests.
Turns out those inputs include one or more �, aka REPLACEMENT CHARACTER,
and since that isn't in printables
the whole thing broke down.
I can work around it with:
otherStuff = Suppress(Word(printables) | Char('�'))
But is there any chance you'd consider adding � to printables
?
Line 257 in f967ba0
printables = "".join([c for c in string.printable if c not in string.whitespace]) |
Metadata
Metadata
Assignees
Labels
No labels