File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const supportsHyperlinks = require('supports-hyperlinks');
4
4
5
5
module . exports = ( text , url , options = { } ) => {
6
6
if ( ! supportsHyperlinks . stdout ) {
7
- return options . fallback ? options . fallback ( text , url ) : `${ text } (${ url } )` ;
7
+ return options . fallback ? options . fallback ( text , url ) : `${ text } (\u200B ${ url } \u200B )` ;
8
8
}
9
9
10
10
return ansiEscapes . link ( text , url ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ test('default fallback', t => {
24
24
25
25
const actual = m ( 'My Website' , 'https://sindresorhus.com' ) ;
26
26
console . log ( actual ) ;
27
- t . is ( actual , 'My Website (https ://sindresorhus.com)' ) ;
27
+ t . is ( actual , 'My Website (\u200Bhttps ://sindresorhus.com\u200B )' ) ;
28
28
} ) ;
29
29
30
30
test ( 'custom fallback' , t => {
You can’t perform that action at this time.
0 commit comments