Commit 10aff6f5 by Dmitry Baranovskiy

Fixed format method

parent 18110273
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2726,7 +2726,7 @@ window.Raphael = (function () {
R.format = function (token) {
var args = R.isArray(arguments[1]) ? [0].concat(arguments[1]) : arguments;
token && typeof token == "string" && args.length - 1 && (token = token.replace(/\{(\d+)\}/g, function (str, i) {
return args[++i] || "";
return args[++i] == null ? "" : args[i];
}));
return token;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment