Skip to content

split_lines should be *after* comments inserting #20

@homm

Description

@homm

I have a issue with split_lines. After splitting (and before inserting comments) code became:

code,code,"yUglify: preserved comment block"
,code,code

I.e. code wraps right after comment. After than replacing comments replaces "preserved comment block" without comma. As a result code become:

code,code,
/* comment
*/
,code,code

I.e. two commas are following each other (with comment between). This causes the error.

You should swap split_lines and code.replace(reTokens, …).

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