paypro: minor - split fix. style fix.

This commit is contained in:
Christopher Jeffrey 2014-08-01 20:24:26 -07:00 committed by Manuel Araoz
commit a3714f8893
2 changed files with 5 additions and 3 deletions

View file

@ -102,7 +102,7 @@ angular.module('copayApp.controllers').controller('SendController',
if (address.indexOf('bitcoin:') === 0) {
uri = copay.HDPath.parseBitcoinURI(address);
} else if (address.indexOf('Merchant: ') === 0) {
uri = { merchant: address.split(' ')[1] };
uri = { merchant: address.split(/\s+/)[1] };
}
if (uri && uri.merchant) {