Permalink
Browse files

Update messageformat.js

Hi there, I just started using mesageformat (looks great ;-))
I noticed this missing ";" when uglifying my js bundle with strict_semicolon option
  • Loading branch information...
1 parent c3d9d5c commit 5dbe72cb48fb7958dc8a54c81d79989f671c5c10 @pgherveou pgherveou committed Sep 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 messageformat.js
View
2 messageformat.js
@@ -58,7 +58,7 @@
return string.replace( /^#|[^\\]#/g, function (m) {
var prefix = m && m.length === 2 ? m.charAt(0) : '';
return prefix + '" + (function(){ var x = ' +
- key+';\nif( isNaN(x) ){\nthrow new Error("MessageFormat: `"+lastkey_'+depth+'+"` isnt a number.");\n}\nreturn x;\n})() + "'
+ key+';\nif( isNaN(x) ){\nthrow new Error("MessageFormat: `"+lastkey_'+depth+'+"` isnt a number.");\n}\nreturn x;\n})() + "';
});
},
escapeExpression : function (string) {

0 comments on commit 5dbe72c

Please sign in to comment.