Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.
This repository was archived by the owner on May 30, 2020. It is now read-only.

Problem not minifying a string that starts with t single line comment #55

@sammyukavi

Description

@sammyukavi

//The code below this commented line does not minify,instead is returned as a semi colon
String.prototype.compose = (function () {
var re = /{{(.+?)}}/g;
return function (o) {
return this.replace(re, function (_, k) {
return typeof o[k] !== 'undefined' ? o[k] : '';
});
};
}());

Actually code breaks if it encounters a single line 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