Browse Source

Merge pull request #20892 from gonnavis/SimplifyRegExpOfWebGLUniforms

Simplify RegExp of WebGLUniforms.js
Mr.doob 4 years ago
parent
commit
916b02612e
1 changed files with 1 additions and 1 deletions
  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
 // Parser - builds up the property tree from the path strings
 
 
-const RePathPart = /([\w\d_]+)(\])?(\[|\.)?/g;
+const RePathPart = /(\w+)(\])?(\[|\.)?/g;
 
 
 // extracts
 // extracts
 // 	- the identifier (member name or array index)
 // 	- the identifier (member name or array index)