Function URLs in terminal end with zero width space causing a click to open an invalid URL #4311
Labels
area: command: dev
area: command: functions
area: functions
good first issue
type: bug
code to address defects in shipped code
Describe the bug
When starting
netlify dev
, all loaded functions are listed with their URLs. These URLs are clickable in most terminals.These URLs have an invisible "zero width space" (
U+200B
) character at the end. Even that snippet above has the characters! (copy that snippet into a text editor and use the arrow keys to move the cursor left and right betweenapi
and)
).Clicking or copying the URL from the terminal to visit it produces a URL that looks like
To Reproduce
Steps to reproduce the behavior:
netlify dev
.Configuration
N/A
Expected behavior
Function URLs should be clickable/copyable without the additional character(s).
Additional context
I checked the source and the character doesn't exist in where the line is logged here.
It seems to be a fallback feature that the
terminal-link
package adds so that certain terminals wouldn't include the)
close paren in the URL.sindresorhus/terminal-link#11
There is an option to disable the fallback.
The text was updated successfully, but these errors were encountered: