Tracker.get() method tests RegExp against itself rather then testing url with it

This issue has been tracked since 2019-01-25.

When get() method is called with url it might return wrong result due to bug in RegExp testing.
Snippet to reproduce:

it('should find single stub by url using RegExp', function () {
        moxios.stubOnce('GET', /^\/users\/\d+$/ , {
          status: 200
        })

        let request = moxios.stubs.get('GET', '/users/12345')

        notEqual(request, undefined)
})
More Details About Repo
Owner Name axios
Repo Name moxios
Full Name axios/moxios
Language JavaScript
Created Date 2016-05-25
Updated Date 2022-12-05
Star Count 1386
Watcher Count 20
Fork Count 85
Issue Count 19

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date