335
335
// substitute the currency symbol for the placeholder in the pattern
336
re = re.replace(/(\s*)(\u00a4{1,3})(\s*)/g, function(match, before, target, after){
336
re = re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g, function(match, before, target, after){
337
337
var prop = ["symbol", "currency", "displayName"][target.length-1];
338
338
var symbol = dojo.regexp.escapeString(options[prop] || options.currency || "");
342
342
if(before){before += "*";}