Skip to content

Incorrect results when the original text contains aribitrary whitespace throughout #7

Description

@dmnapolitano

(Source)

original_text = """in Just-\nspring          when the world is mud-\nluscious the little\nlame balloonman\n\nwhistles          far          and wee\n\nand eddieandbill come\n   
running from marbles and\npiracies and it's\nspring\n\nwhen the world is puddle-wonderful\n\nthe queer\nold balloonman whistles\nfar          and             wee\nand bettyandisbel\
 come dancing\n\nfrom hop-scotch and jump-rope and\n\nit's\nspring\nand\n\n         the\n\n                  goat-footed\n\nballoonMan          whistles\nfar\nand\nwee"""
match.match(original_text, ["when", "the", "world", "is", "mud-luscious", 
"the", "little", "lame", "balloonman", "whistles", "far", "and", "wee"])

This produces incorrect results, failing to match all the way to the end of "wee" (let alone "whistles"):

[(25, 92, 'when the world is mud-\nluscious the little\nlame balloonman\n\nwhistle')]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions