Przeglądaj źródła

Merge pull request #19938 from takahirox/CRLFModularize

modularize.js supports CRLF new line code
Mr.doob 5 lat temu
rodzic
commit
61ef1c1aa1
1 zmienionych plików z 1 dodań i 1 usunięć
  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