fix regex with escaping

I forked the project and ran the tests, which broke.

I got them to pass with this regex change.

Now all tests are passing.