Distributed.js
function internal_parse_scope(center, distributionScope) {
	// "?" or "*" is filted by this.require()
	if (distributionScope.length < 4) return this.require(":::");

	// systemPart:pathPart:scopePart
	//		- rx_tokens = /^([^:]+):(.*):([^:]+)$/		-> m[0],m[1],m[2]
	var rx_tokens = /^(.*):([^:]+)$/, m = distributionScope.match(rx_tokens);
	if (! m) return this.require(":::");

	// TODO: dynamic scopePart parser, the <parts> is systemPart:pathPart
	// 		- var full = m[0], parts = m[1], scopePart = m[2];
	return (m[2] == '?') ? this.require("::?")
		: (m[2] == '*') ? Promise.resolve(center.require(m[1]))
		: Promise.reject("dynamic scopePart is not support for '"+distributionScope+"'");
}
function internal_parse_scope(center, distributionScope) {
	// "?" or "*" is filted by this.require()
	if (distributionScope.length < 4) return this.require(":::");

	// systemPart:pathPart:scopePart
	//		- rx_tokens = /^([^:]+):(.*):([^:]+)$/		-> m[0],m[1],m[2]
	var rx_tokens = /^(.*):([^:]+)$/, m = distributionScope.match(rx_tokens);
	if (! m) return this.require(":::");

	// TODO: dynamic scopePart parser, the <parts> is systemPart:pathPart
	// 		- var full = m[0], parts = m[1], scopePart = m[2];
	return (m[2] == '?') ? this.require("::?")
		: (m[2] == '*') ? Promise.resolve(center.require(m[1]))
		: Promise.reject("dynamic scopePart is not support for '"+distributionScope+"'");
}
function internal_parse_scope ( center , distributionScope ) { // "?" or "*" is filted by this.require() if ( distributionScope . length < 4 ) return this . require ( ":::" ) ; // systemPart:pathPart:scopePart //		- rx_tokens = /^([^:]+):(.*):([^:]+)$/		-> m[0],m[1],m[2] var rx_tokens = / ^(.*):([^:]+)$ / , m = distributionScope . match ( rx_tokens ) ; if ( ! m ) return this . require ( ":::" ) ; // TODO: dynamic scopePart parser, the <parts> is systemPart:pathPart // 		- var full = m[0], parts = m[1], scopePart = m[2]; return ( m [ 2 ] == '?' ) ? this . require ( "::?" ) : ( m [ 2 ] == '*' ) ? Promise . resolve ( center . require ( m [ 1 ] ) ) : Promise . reject ( "dynamic scopePart is not support for '" + distributionScope + "'" ) ; }
internal distribution scope praser
internal distribution scope praser