Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmnapolitano opened this issue Sep 25, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@dmnapolitano
Copy link
Collaborator

(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')]
@dmnapolitano dmnapolitano self-assigned this Sep 25, 2019
@dmnapolitano dmnapolitano changed the title Incorrect results when the original text contains aribtrary whitespace throughout Incorrect results when the original text contains aribitrary whitespace throughout Sep 25, 2019
@dmnapolitano dmnapolitano added this to the v0.3.1 milestone Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant