stacktracejs/stacktrace.js

Error in Parse url domain

giansalex opened this issue · 1 comments

I have domain with dashes, but url result have only first domain word
MySite: https://aspnetbundle-prod.us-east-1.elasticbeanstalk.com/

image

Expected Behavior

https://aspnetbundle-prod.us-east-1.elasticbeanstalk.com/Scripts/app.js

Current Behavior

https://aspnetbundle/Scripts/app.js

Steps to Reproduce (for bugs)

Use domain with dashes

Your Environment

Possible Solution

change Regex to :

var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.\-]*)(?::(\d+))?(\S*)$/

https://github.com/stacktracejs/stacktrace.js/blob/master/dist/stacktrace.js#L1857

Thanks for your report--I have the same issue. This URL parse issue appears to have been fixed in source-map@0.6.0: mozilla/source-map@215590b#diff-efe561bdbff5cb09f13b5648ff47c376R740

A potential workaround may be to update an npm-shrinkwrap.json with source-map@0.6.1.