In principle, just tweaking the regex is sufficient, but the resulting abomination is not for the meek of heart. The existing expression is already undesirably tricky with the .*? lazy capture group. In the end, regex is the wrong tool in this particular case, so let's use the right one.
In principle, just tweaking the regex is sufficient, but the resulting abomination is not for the meek of heart. The existing expression is already undesirably tricky with the
.*?
lazy capture group. In the end, regex is the wrong tool in this particular case, so let's use the right one.Fixes #351.