Skip to content

Symbol#getJsDocTags adds whitespace in URLs #42581

Closed
@RomainMuller

Description

@RomainMuller

Bug Report

🔎 Search Terms

@see, JsDocTags

🕗 Version & Regression Information

This changed between 3.9 and 4.1.

💻 Code

/** @see http://lmgtfy.com */
export class Foo {}

🙁 Actual behavior

Consider the exported symbol Foo above... When calling getJsDocTags() on that, the result includes:

{ text: 'http ://lmgtfy.com', name: 'see' }
//           ^-- spurious space

🙂 Expected behavior

Expected the @see tag's text to be represented as-is:

{ text: 'http://lmgtfy.com', name: 'see' }

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions