Procházet zdrojové kódy

SimplifyRegExpOfWebGLUniforms

gonnavis před 4 roky
rodič
revize
153bd4b0e5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/renderers/webgl/WebGLUniforms.js

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

@@ -749,7 +749,7 @@ StructuredUniform.prototype.setValue = function ( gl, value, textures ) {
 
 // Parser - builds up the property tree from the path strings
 
-const RePathPart = /([\w\d_]+)(\])?(\[|\.)?/g;
+const RePathPart = /(\w+)(\])?(\[|\.)?/g;
 
 // extracts
 // 	- the identifier (member name or array index)