fix #31 - missing test case

The focus here was correcting the missing test case.  I used code that I had which passed the test rather than try work out how to play with the regex (which I am a complete novice with).

If someone prefers the previous solution, please feel free to modify it and submit.