change to camelCase

This commit is contained in:
Matias Alejo Garcia 2014-07-29 10:14:43 -03:00
commit 19b9fcd0b1

View file

@ -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;