tomekwojcik / ForgeryPy

An easy to use forged data generator for Python
http://tomekwojcik.github.com/ForgeryPy/
MIT License
67 stars 14 forks source link

Make sure semicolon doesn't show up in lorem ipsum words #9

Closed el-ethan closed 7 years ago

el-ethan commented 7 years ago

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 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.

Thanks for the great tool!