Error in Parse url domain
giansalex opened this issue · 1 comments
giansalex commented
I have domain with dashes, but url result have only first domain word
MySite: https://aspnetbundle-prod.us-east-1.elasticbeanstalk.com/
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
- stacktrace.js version: 2.0.0
- Browser Name and version: Chrome 64.0.3282.186 (Build oficial)
- Operating System and version: Windows 10 Pro (64 bits)
- Link to your project: https://github.com/giansalex/aspnet-bundling-sourcemap
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
bradleyhamm commented
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.
