浏览代码

fix case-sensitive

sunag 7 年之前
父节点
当前提交
0373746870
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/loaders/NodeMaterialLoader.js

+ 1 - 1
examples/js/loaders/NodeMaterialLoader.js

@@ -124,7 +124,7 @@ Object.assign( THREE.NodeMaterialLoader.prototype, {
 			
 			case "string":
 			
-				if (/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/s.test(json)) {
+				if (/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/i.test(json)) {
 					
 					return this.getNode( json );