Skip to content

Wrong parsing of default values #173

@tomek-he-him

Description

@tomek-he-him

The default value may have a space within. It’s perfectly valid and jsDoc has nothing against that:

/**
 * @param {String} [a='b c'] description
 */

But dox gets confused:

[{"tags": [
  {
    "type": "param",
    "string": "{String} [a='b c'] description",
    "name": "[a='b",
    "description": "c'] description",
    "types": [
      "String"
    ],
    "typesDescription": "<code>String</code>",
    "optional": true,
    "nullable": false,
    "nonNullable": false,
    "variable": false
  }
]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions