فهرست منبع

use more selective whitespace matching

aardgoose 9 سال پیش
والد
کامیت
c8b5dc8791
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/renderers/webgl/WebGLProgram.js

+ 1 - 1
src/renderers/webgl/WebGLProgram.js

@@ -152,7 +152,7 @@ function replaceLightNums( string, parameters ) {
 
 
 function parseIncludes( string ) {
 function parseIncludes( string ) {
 
 
-	var pattern = /^\s*#include +<([\w\d.]+)>/gm;
+	var pattern = /^[ \t]*#include +<([\w\d.]+)>/gm;
 
 
 	function replace( match, include ) {
 	function replace( match, include ) {
 
 

粤ICP备19079148号