Closed gojefferson closed 6 years ago
Assume that assetPath (in rewriteAssetPath) is "popper.js.map", and assume that string contains the following substring:
assetPath
rewriteAssetPath
string
er.placements = placements; Popper.Defaults = Defaults; return Popper; }))); //# sourceMappingURL=popper.js.map } ;if (typeof FastBoot === 'undefined') { /*! * clipboard.js v1.7.1 * https://zenor
The existing regex will make the following match:
popper.js.map } ;if
Which causes the following line to break:
replaceString = this.prepend + removeLeadingRelativeOrSlashRegex.exec(replaceString)[2];
I've proposed a solution in a PR: https://github.com/rickharrison/broccoli-asset-rewrite/pull/64
Assume that
assetPath
(inrewriteAssetPath
) is "popper.js.map", and assume thatstring
contains the following substring:The existing regex will make the following match:
Which causes the following line to break:
I've proposed a solution in a PR: https://github.com/rickharrison/broccoli-asset-rewrite/pull/64