Changeset 7787 for trunk/src/string
- Timestamp:
- 03/25/07 17:56:14 (22 months ago)
- Files:
-
- 1 modified
-
trunk/src/string/extras.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/string/extras.js
r7529 r7787 21 21 // thisObject: where to look for optional format function; default to the global namespace 22 22 23 return template.replace(/\$\{([^\s\: ]+)(?:\:(\S+))?\}/g, function(match, key, format){23 return template.replace(/\$\{([^\s\:\}]+)(?:\:(\S+))?\}/g, function(match, key, format){ 24 24 var value = dojo.getObject(key,false,map).toString(); 25 25 if(format){ value = dojo.getObject(format,false,thisObject)(value);}