change to camelCase
This commit is contained in:
parent
1d5238b2b8
commit
19b9fcd0b1
1 changed files with 6 additions and 7 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var imports = require('soop').imports();
|
|
||||||
var preconditions = require('preconditions').singleton();
|
var preconditions = require('preconditions').singleton();
|
||||||
|
|
||||||
function Structure() {}
|
function Structure() {}
|
||||||
|
|
@ -63,14 +62,14 @@ Structure.parseBitcoinURI = function(uri) {
|
||||||
if (splitQuestion.length > 1) {
|
if (splitQuestion.length > 1) {
|
||||||
var search = splitQuestion[1];
|
var search = splitQuestion[1];
|
||||||
data = JSON.parse('{"' + search.replace(/&/g, '","').replace(/=/g, '":"') + '"}',
|
data = JSON.parse('{"' + search.replace(/&/g, '","').replace(/=/g, '":"') + '"}',
|
||||||
function(key, value) {
|
function(key, value) {
|
||||||
return key === "" ? value : decodeURIComponent(value);
|
return key === "" ? value : decodeURIComponent(value);
|
||||||
});
|
});
|
||||||
ret.amount = parseFloat(data.amount);
|
ret.amount = parseFloat(data.amount);
|
||||||
ret.message = data.message;
|
ret.message = data.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = require('soop')(Structure);
|
module.exports = Structure;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue