Closed AnnaKalkanis closed 7 years ago
Ahhh, my mistake. Didn't realize the regex matching hasn't been published to npm. Any plan to release a new version?
Sorry about that! I think I was waiting on https://github.com/jameslnewell/xhr-mock/pull/16 to be complete which adds similar functionality and some bug fixes. I've published 1.8.0
in the mean time.
Let me know if you have any more issues!
When using RegEx, my request is not matching mock.
Request against 'https://localhost.fake/api/uploads/test/123456'.
For mock, I've tried
and
It works fine when I use the actual url, but does not seem to match against various valid RegExs that I've tried. Am I formatting this incorrectly? Is it possible to use a wildcard?