rem: if (list2.length < 2) { 
add: if ((list2.length < 2) && (list2[0] + "}" != list[i])) { 
context: function substitute_var(str, subobj){	var list = split("${", str);	var i;	for (i=1;i<list.length;i++) {		var list2 = split("}", list[i], 1);		if (list2.length < 2) {			return undefined;		}		var key = list2[0];		var val;		if (typeof(subobj[key]) == "undefined") {			val = "${" + key + "}";		} else if (typeof(subobj[key]) == "string") {			val = subobj[key];		} else {			var fn = subobj[key];			val = fn(key);		}		list2[0] = "" + val;		list[i] = join("", list2);	}	return join("", list);}
meta: 1392	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1392/c642680e5ba8cf8b58f89f9cad7140b4d1df96e1/base.js/clean/source4/scripting/libjs/base.js