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

Testing

parent 00d00ed6
...@@ -20,6 +20,13 @@ function Marka(target) { ...@@ -20,6 +20,13 @@ function Marka(target) {
Marka.prototype.match = function() { Marka.prototype.match = function() {
// docs: https://github.com/padolsey/findAndReplaceDOMText // docs: https://github.com/padolsey/findAndReplaceDOMText
this.currencySymbols = "[€$¢¥₹₨]"; this.currencySymbols = "[€$¢¥₹₨]";
/* var opts = [];
for (sym in currency_info) {
opts.push(currency_info[sym].symbol_native)
}
this.currencySymbols = "(" + opts.join("|") + ")"
console.log(this.currencySymbols)
*/
var currencySymbols = this.currencySymbols; var currencySymbols = this.currencySymbols;
var currencyWords = "(" + currencySymbols + "|kr|[Dd]ollars|[Cc]ents on the dollar|[Cc]ents|[Ee]uros|[Pp]ounds|[Rr]upees|[Zz]loty)"; var currencyWords = "(" + currencySymbols + "|kr|[Dd]ollars|[Cc]ents on the dollar|[Cc]ents|[Ee]uros|[Pp]ounds|[Rr]upees|[Zz]loty)";
var numbers = "[\\d,.]+"; var numbers = "[\\d,.]+";
......
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