瀏覽代碼

Merge pull request #19938 from takahirox/CRLFModularize

modularize.js supports CRLF new line code
Mr.doob 5 年之前
父節點
當前提交
61ef1c1aa1
共有 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
 	// remove examples/js deprecation warning
 
 
-	contents = contents.replace( /^console\.warn.*\n/, '' );
+	contents = contents.replace( /^console\.warn.*(\r\n|\r|\n)/, '' );
 
 
 	// imports
 	// imports