From 84eee280ae698fca33d882d99db232c5164ad3dc Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 4 Mar 2013 13:50:20 -0800 Subject: [PATCH] JS: Backout some of latest amount parsing changes. --- src/js/amount.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/amount.js b/src/js/amount.js index 9af793f2..da2e289c 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -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]);