Skip to content

Commit

Permalink
Don't try to remove line comments for languages without them
Browse files Browse the repository at this point in the history
(#7)
  • Loading branch information
Infocatcher committed Apr 20, 2014
1 parent fb01546 commit 8cbe595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toggleComments.js
Expand Up @@ -407,7 +407,7 @@ Comments.prototype = {
return str;
},
excludeLineComments: function(str) {
if(!checkSyntax || oldRegExp)
if(!checkSyntax || oldRegExp || this.noCmmLine)
return str;
for(var i = 0, len = this.cmmLine.length; i < len; ++i) {
var cmmLine = this.cmmLine[i];
Expand Down

0 comments on commit 8cbe595

Please sign in to comment.