Merge commit '3a3f38927fcc1ea1883b14d2b1dc86ae91c7b135'

This commit is contained in:
Arthur Britto
2013-03-04 13:50:55 -08:00

View File

@@ -613,7 +613,8 @@ Amount.prototype.parse_issuer = function (issuer) {
Amount.prototype.parse_json = function (j) {
if ('string' === typeof j) {
// .../.../... notation is not a wire format. But allowed for easier testing.
var m = j.match(/^(.+)\/(...)(?:\/(.+))?$/);
// var m = j.match(/^(.+)\/(...)(?:\/(.+))?$/);
var m = j.match(/^(.+)\/(...)\/(.+)$/);
if (m) {
this._currency = Currency.from_json(m[2]);