Skip to content

parse.nodeToString incorrectly calculates range #476

@jrburke

Description

@jrburke

In particular, if there is no comment or content above the requirejs.config call, it calculates the start value off by one as the preamble incorrectly includes as \n for zero line requirejs.config calls.

Found by @robdodson, in yeoman/grunt-bower-requirejs#36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions