提交 bc069671 编写于 作者: T Takahiro 提交者: Mr.doob

Add Delimiter to regex for trackName (#9696)

上级 019d3133
......@@ -540,10 +540,11 @@ PropertyBinding.parseTrackName = function( trackName ) {
// uuid.objectName[objectIndex].propertyName[propertyIndex]
// parentName/nodeName.property
// parentName/parentName/nodeName.property[index]
// .bone[Armature.DEF_cog].position
// .bone[Armature.DEF_cog].position
// scene:helium_balloon_model:helium_balloon_model.position
// created and tested via https://regex101.com/#javascript
var re = /^((?:\w+\/)*)(\w+)?(?:\.(\w+)(?:\[(.+)\])?)?\.(\w+)(?:\[(.+)\])?$/;
var re = /^((?:\w+[\/:])*)(\w+)?(?:\.(\w+)(?:\[(.+)\])?)?\.(\w+)(?:\[(.+)\])?$/;
var matches = re.exec( trackName );
if ( ! matches ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册