This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TS.utility.msgs.wordReplace = function (text, replace_object) { | |
if(!replace_object){ | |
return text; | |
} | |
var rx_opts = (replace_object.g ? "g" : "") + (replace_object.i ? "i" : ""); | |
var rx = new RegExp(replace_object.str, rx_opts); | |
return text.replace(rx, replace_object.rpl.replace(/\\(\d+)/g, "$$1")); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* min.js | |
* | |
* By lewisjb - 19/1/17 | |
* | |
* github/lewisjb | |
* lewisjb.com | |
* | |
* ---------------------------------------------------------------------------- | |
* This is meant to be a minimal MVVM written in JS. |