提交 baff4967 编写于 作者: R Rich Tibbett 提交者: Mr.doob

Add word boundary matchers around GLTFLoader regular expressions to avoid...

Add word boundary matchers around GLTFLoader regular expressions to avoid replacing partial word matches (#9897)
上级 b6b72f00
......@@ -664,7 +664,7 @@ var replaceTHREEShaderAttributes = function( shaderText, technique ) {
var semantic = param.semantic;
var regEx = new RegExp( pname, "g" );
var regEx = new RegExp( "\\b" + pname + "\\b", "g" );
switch ( semantic ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册