Open trabus opened 9 years ago
This is unfortunately a pretty complex problem to solve. Any help with failing test cases, etc. would be much appreciated.
I'll try to throw together a test case, and maybe even take a crack at it later tonight. I'm doing something similar with ember-cli-mv, but I'm walking the AST for each file and updating paths there (currently just doing a regex as well).
@trabus thanks for reporting this!
As described in this S.O. issue, if there is a remote file path that contains the same filename as another file that is a valid rewrite (an actual asset path that should be rewritten), the rewriteAssetPath method is processing those paths even though they're to a remote path.
For instance, in a project named
coolapp
:I imagine this probably just needs some adjustments to the regex to prevent matching remote paths.