Skip to content

Remove the carrot (`) from the parseParams regex? #10

@tunnckoCore

Description

@tunnckoCore

It can be found at https://github.com/jonschlinkert/parse-comments/blob/master/index.js#L126. And the intention of that is because it is not standard jsdoc, so syntax highlighting is different.

source code

/**
 * > Make an array from any value.
 *
 * @param  {Any} `val` some long description
 * @return {Array}
 * @api private
 */

let arrayify = (val) => {
  if (!val) return []
  if (Array.isArray(val)) return val
  return [val]
}

without carrot

2017-01-18-19 36 58_445x309_scrot

with carrot

2017-01-18-19 37 35_481x296_scrot

notice the val

More better would be to wrap with ` later, instead of relay on that

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