Skip to content

[Bug] URL in JSDoc breaks NgDocActions.playground #281

@claassenst-transpower

Description

@claassenst-transpower

Is this a regression?

Yes

Description

I've added a URL to a class member's JSDoc. This appears to break JSON validity for the playground functionality.
The same happens whether using {@link} or pasting the URL raw.

Image

Image

Image

Please provide the exception or error you saw

core.mjs:6672 
 ERROR SyntaxError: Expected ',' or '}' after property value in JSON at position 673 (line 1 column 674)
    at JSON.parse (<anonymous>)
    at Object.extractOptions (ng-doc-app-processor…ocessors.mjs:108:24)
    at ng-doc-app-processor…processor.mjs:45:35
    at Array.forEach (<anonymous>)
    at _NgDocPageProcessorComponent.process (ng-doc-app-processor…processor.mjs:41:84)
    at Array.forEach (<anonymous>)
    at ng-doc-app-processor…processor.mjs:34:57
    at _ZoneDelegate.invoke (zone.js:369:28)
    at Object.onInvoke (core.mjs:6524:25)
    at _ZoneDelegate.invoke (zone.js:368:34)

OS

Windows

Browser

Edge

Node version

20.12.2

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions