now working with https://github.com/benmccallum/AspNetBundling and st…
If you have a path like /hello/thisismymap then this pullrequest fixes so that it will be handled as well.
Sorry, I don't quite understand what behaviour you are trying to fix - are you able to explain it a bit more?
"/hello/thisismymap" will be treated as a relative path before and after your change
var absUrlRegex = new RegExp('^(?:[a-z]+:)?//', 'i');
absUrlRegex.test("/hello/thisismymap")
>> false
because the lookahead
I will show you an example where it is working and one case where it is not working.
Here is an example where we use webpack and it actually is working great. That's because the sourcemap URL is relative to the js file.
In the js file the sourmapping is defined as follows
//# sourceMappingURL=app.987d40dbe9e3073106b0.bundle.js.map
and the file can be fetched from
https://desktop-rhvpai8.symbrio.com/symbrio_main/symapp/built/app.987d40dbe9e3073106b0.bundle.js.map
which the the sourcemapped-stacktrace does correctly!

Second example here which is not working.
This is minified with aspNetbundler

This is using the sourcemap location which is sort of absolute but without domain and protocol. //# sourceMappingURL=/symbrio_main/bundles/symapp-ordermap
this makes the if branch at line 140 true because of
var absUrlRegex = new RegExp('^(?:[a-z]+:)?//', 'i');
absUrlRegex.test("/hello/thisismymap")
>> false
and causes the URL for the sorucemap to be:
https://desktop-rhvpai8.symbrio.com/symbrio_main/bundles//symbrio_main/bundles/symapp-ordermap
this is wrong the actual sorcemap is located in https://desktop-rhvpai8.symbrio.com/symbrio_main/bundles/symapp-ordermap
With my fix this ignores these kind of URLs and just feteches the absolute URLs.