Skip to content

Conversation

rafaelfranca
Copy link
Member

When using pin_all_from, filenames containing "js" as a substring (like "foo.jszip.js" or "bar.jsmin.js") were having the substring incorrectly removed, resulting in malformed module names like "foozip" and "barmin" instead of "foo.jszip" and "bar.jsmin".

Fixed the logic to only remove the file extension from the end of the filename, preserving any "js" substrings that appear
elsewhere in the name.

Fixes #282

When using pin_all_from, filenames containing "js" as a substring
(like "foo.jszip.js" or "bar.jsmin.js") were having the substring
incorrectly removed, resulting in malformed module names like
"foozip" and "barmin" instead of "foo.jszip" and "bar.jsmin".

Fixed the logic to only remove the file extension from the end
of the filename, preserving any "js" substrings that appear
elsewhere in the name.

Fixes #282
@rafaelfranca rafaelfranca merged commit 51c1a53 into main Aug 1, 2025
68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix path mangling when .js is a substring e.g. foo.jszip.js
1 participant