Prechádzať zdrojové kódy

modularize.js supports CRLF new line code

Takahiro 5 rokov pred
rodič
commit
9fcc7b73aa
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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