Changeset 7787 for trunk/src/string

Show
Ignore:
Timestamp:
03/25/07 17:56:14 (22 months ago)
Author:
peller
Message:

Fixes #2350. Thanks again, schallm

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/string/extras.js

    r7529 r7787  
    2121// thisObject: where to look for optional format function; default to the global namespace 
    2222 
    23         return template.replace(/\$\{([^\s\:]+)(?:\:(\S+))?\}/g, function(match, key, format){ 
     23        return template.replace(/\$\{([^\s\:\}]+)(?:\:(\S+))?\}/g, function(match, key, format){ 
    2424                var value = dojo.getObject(key,false,map).toString(); 
    2525                if(format){ value = dojo.getObject(format,false,thisObject)(value);}