Fix a regression with RegExp.
Merge pull request #33 from unfold/regexp

Fix a regression with RegExp.