-
Notifications
You must be signed in to change notification settings - Fork 770
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
Fix incorrect extension extraction from file paths #1045
Conversation
🦋 Changeset detectedLatest commit: 00e06e6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2350676635/npm-package-wrangler-1045 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1045/npm-package-wrangler-1045 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2350676635/npm-package-wrangler-1045 dev path/to/script.js |
d679919
to
fd1a5f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Would you like to add a test for this?
fd1a5f8
to
5ba5255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to stamp this, but would you also like to add a changeset for this? Run npx changeset
at the root, choose wrangler / patch, and the content can be exactly the title + description of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jrf0110 , appreciate ya!
5ba5255
to
6833987
Compare
…t assets publish Fixes cloudflare#1029 Our extension extraction logic was taking into account folder names, which can include periods. The logic would incorrectly identify a file path of `.well-known/foo` as having the extension of `well-known/foo` when in reality it should be an empty string.
6833987
to
0b536ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Pete Bacon Darwin <[email protected]>
Fixes #1029
Our extension extraction logic was taking into account folder names, which can include periods. The logic would incorrectly identify a file path of
.well-known/foo
as having the extension ofwell-known/foo
when in reality it should be an empty string.