bugsnag / webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
MIT License
32 stars 29 forks source link

[Fix] Improve regex to replace parent level path #80

Open rodrigofeijao opened 3 months ago

rodrigofeijao commented 3 months ago

Goal

Sometimes when passing publicPath the source is not prefixed with / or ./, it can also happen to be prefixed with ../. This PR improves the regex to also work on those cases.

Changeset

rodrigofeijao commented 3 months ago

@bengourley @djskinner @JamesLindsay0 if you could review and get the PR published it would be absolutely great! (happy to improve a few other things in the plugins after that)

djskinner commented 2 months ago

@rodrigofeijao in what scenario would that occur? This fix looks good but I'd like to add a test fixture to cover it before we merge