-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi,
when minifying the current moment.js File [1], I get a SyntaxError in the minified version created by jsmin. The source file contains the following code:
this._dayOfMonthOrdinalParseLenient = new RegExp(
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
'|' +
/\d{1,2}/.source
);
which is minified to
this._config=config;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+
'|'+/
\d{1,2}/.source);}
If I remove the new lines, the generated minified JavaScript is valid.
Why are those newlines preserved anyways?
Cheers,
Sebastian
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels