Skip to content

Fix pin_all_from incorrectly removing "js" substring from filenames #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2025

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