appendto/jquery-mockjax — comment on commit 77ecf9f82db4d762018e36222ce5db0ff005e3f3
File: jquery.mockjax.js line 82
By jdsharp:

Rather than generating a regex, what about testing if s.url is a regex object? I'd be much more in favor of doing something like: { url: /foo\/bar.*/ } as opposed to a string interpreted into a regex. So provide the same API functionality for strings as currently is, and then allow for passing in a regex object for advanced cases. Thoughts?