Преглед на файлове

Merge pull request #20892 from gonnavis/SimplifyRegExpOfWebGLUniforms

Simplify RegExp of WebGLUniforms.js
Mr.doob преди 4 години
родител
ревизия
916b02612e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)