User:Ohconfucius/test/MOSNUM utils.js: Difference between revisions

Content deleted Content added
change ohc_regex to work on the input text instead of the DOM
+ chainable version of ohc_regex
Line 641:
ohc_alert_error(message, debug_reg);
}
}
 
String.prototype.ohc_regex = function(rg, sub, func) {
return ohc_regex(this.toString(), rg, sub, func);
}