fix fakeXHR when response is function handler and url contains RegExp characters
Merge pull request #263 from salomvary/fakexhr-function-handler-vs-regexp

fix fakeXHR when response is function handler and url contains RegExp characters