diff --git a/test/middleware-mockserver.js b/test/middleware-mockserver.js index 06bf3b9c6..bb31eabfa 100644 --- a/test/middleware-mockserver.js +++ b/test/middleware-mockserver.js @@ -98,7 +98,7 @@ var mocks = { } else if ( req.query.callback ) { callback = Promise.resolve( req.query.callback ); } else if ( req.method === "GET" ) { - callback = Promise.resolve( req.url.match( /^.+\/([^\/?.]+)\?.+$/ )[ 1 ] ); + callback = Promise.resolve( req.url.match( /^.+\/([^\/?]+)\?.+$/ )[ 1 ] ); } else { callback = getBody( req ).then( function( body ) { return body.trim().replace( "callback=", "" );