Skip to content

Commit 916b026

Browse files
authored
Merge pull request #20892 from gonnavis/SimplifyRegExpOfWebGLUniforms
Simplify RegExp of WebGLUniforms.js
2 parents 3702e1e + 153bd4b commit 916b026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/webgl/WebGLUniforms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ StructuredUniform.prototype.setValue = function ( gl, value, textures ) {
749749

750750
// Parser - builds up the property tree from the path strings
751751

752-
const RePathPart = /([\w\d_]+)(\])?(\[|\.)?/g;
752+
const RePathPart = /(\w+)(\])?(\[|\.)?/g;
753753

754754
// extracts
755755
// - the identifier (member name or array index)

0 commit comments

Comments
 (0)