浏览代码

modularize.js supports CRLF new line code

Takahiro 5 年之前
父节点
当前提交
9fcc7b73aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/modularize.js

+ 1 - 1
utils/modularize.js

@@ -252,7 +252,7 @@ function convert( path, exampleDependencies, ignoreList ) {
 
 	// remove examples/js deprecation warning
 
-	contents = contents.replace( /^console\.warn.*\n/, '' );
+	contents = contents.replace( /^console\.warn.*(\r\n|\r|\n)/, '' );
 
 	// imports