Remove trailing periods from URLs in terminal output#14105
Remove trailing periods from URLs in terminal output#14105dario-piotrowicz wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 93fe913 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
|
✅ All changesets look good |
|
Now let me check the Now let me check if the
Looking at the diff for The original URL was Let me check if the Cloudflare docs URL actually works with or without the trailing slash: Actually, looking more carefully at the original: The Let me also verify the The first period (after Now let me look at the Wait — Overall, this PR looks straightforward and correct. The one thing I want to flag is the tunnel.ts refactoring which goes beyond just removing periods — it restructured the message to move the URL to the end of the string. Let me check if there's a subtle issue with the test expectation at line 390: The URL But actually, there IS an issue here. The hint
Some terminal emulators are smarter about URL detection and might not break cleanly on the space. But most modern ones do. This is a minor concern. Let me check one more thing — the no-extendHint case with a URL. Looking at line 432 in the test: The URL is at the end with no trailing period. And now the no-URL case with the period still present at line 151: This has periods but no URLs — correct, no issue. Overall, this PR is clean. The changes are mechanical period removals. The tunnel.ts refactoring is a bit more involved but the approach of moving the URL to the end of the message (instead of having it followed by a period) is a reasonable alternative to just removing the period. The only very minor observation is that the vitest-pool-workers change added a trailing slash to the URL that wasn't there before, but that's not a functional issue. LGTM |
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
@cloudflare/wrangler-bundler
commit: |
95fbc02 to
93fe913
Compare
Fixes #14102
URLs printed to the terminal with a sentence-ending period (e.g.
https://example.com/path.) would include the period when clicked in some terminal emulators, causing 404 errors. This removes trailing periods from all URLs displayed in CLI output across wrangler, miniflare, vitest-pool-workers, and workers-utils.A picture of a cute animal (not mandatory, but encouraged)