cjohansen/Sinon.JS — pull request #263 by salomvary (2013-04-04 10:24:56+00:00)
Title: fix fakeXHR when response is function handler and url contains RegExp characters

The problem here was that String.exec accepts RegExp or string, in the latter case compiles the string into RegExp using `new RegExp(string)`. This might not match in case we ended up here because fake_server.js#L54 matched by string equality.