I use your package frequently in a test suite for an app I work on, and I love it! However, every once in a while, the lorem_ipsum.word() function will return this word: 'curae;', which messes stuff up for me because of the semicolon. From the re.sub() in that method it looks like you are trying to remove punctuation, but it appears that ';' will only be removed if it is followed by '/', which doesn't happen in your lorem ipsum text, so they are never removed. This PR addresses that. I added a test too. If I have missed something though, and this is the desired behavior, please disregard this PR.
Hello,
I use your package frequently in a test suite for an app I work on, and I love it! However, every once in a while, the
lorem_ipsum.word()
function will return this word:'curae;'
, which messes stuff up for me because of the semicolon. From there.sub()
in that method it looks like you are trying to remove punctuation, but it appears that';'
will only be removed if it is followed by'/'
, which doesn't happen in your lorem ipsum text, so they are never removed. This PR addresses that. I added a test too. If I have missed something though, and this is the desired behavior, please disregard this PR.Thanks for the great tool!