diff --git a/make.js b/make.js index 72f0f3fc0..bb36b4722 100644 --- a/make.js +++ b/make.js @@ -606,8 +606,9 @@ target.singlefile = function() { function stripCommentHeaders(content, filename) { var notEndOfComment = '(?:[^*]|\\*(?!/))+'; var reg = new RegExp( - '\n(?:/\\*' + notEndOfComment + '\\*/\\s*|//(?!#).*\n\\s*)+' + - '\'use strict\';', 'g'); + '\n/\\* Copyright' + notEndOfComment + '\\*/\\s*' + + '(?:/\\*' + notEndOfComment + '\\*/\\s*|//(?!#).*\n\\s*)*' + + '\\s*\'use strict\';', 'g'); content = content.replace(reg, ''); return content; }