golonka/BBCodeParser — pull request #5 by joelhinz (2014-05-15 13:53:56+00:00)
Title: Improved matching by removing greediness to most * operators.

First off, thanks a lot for the package!

I noticed that most operators were greedy, so that if we have a string such as "This is some [b]bold[/b] text and here's some more [b]bold[/b] text", this would parse to "This is some bold[/b] text and here's some more [b]bold text" rather than find both tags, as long as they're both in the same paragraph.

The new version corrects this by making the * operators greedy, except for listItem which doesn't use closing tags. It passes the provided test cases fine.