Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AbstractDoc incorrectly maps decorators which contain multiline arguments #471

Description

@trbm1

Short summary of your issue

When AbstractDoc is mapping decorators inside javascript files that contain multiline arguments. The DocBuilder html plugins fails with an error =>
esdoc/esdoc-plugins#36

Caused at:

value.name = babelGenerator(decorator.expression).code.replace(/[(].*/, '');

Multiline matching @ JavaScript and regular expressions works differently. For example, the regular expression that matches multiline arguments is

[(][\S\s.]*

Your environment

  • OS type and version: Mac OS 10.12.6
  • Node.js version: Node 8.5.0
  • ESDoc version: 1.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions