Commit f4b22cd8 authored by Smari McCarthy's avatar Smari McCarthy
Browse files

Do conversions automagically

parent 8480fb75
......@@ -37,6 +37,7 @@ Marka.prototype.match = function() {
opts.push(currency_info[sym].symbol_native)
}
this.currencySymbols = "(" + opts.join("|") + ")"
console.log(this.currencySymbols)
*/
var currencySymbols = this.currencySymbols;
......@@ -100,7 +101,7 @@ Marka.prototype.splitSymbols = function(text) {
realnumber = parseFloat(number);
if (!realnumber) { return false; }
var residual = text.replace(numbers, "")
for(var property in dollar_multiplier_lookup_table){
value = dollar_multiplier_lookup_table[property];
var index = residual.search(property);
......@@ -109,7 +110,7 @@ Marka.prototype.splitSymbols = function(text) {
residual = residual.replace(property, "");
}
};
var result = this.findSymbol(residual);
if (result.symbol == null) {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment