From 3aa171fbaf05d0ee5b82673443da51ed43719475 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 25 Sep 2015 17:36:53 -0400 Subject: moving things around --- bucky/util/util.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 bucky/util/util.js (limited to 'bucky/util/util.js') diff --git a/bucky/util/util.js b/bucky/util/util.js new file mode 100644 index 0000000..e67488b --- /dev/null +++ b/bucky/util/util.js @@ -0,0 +1,4 @@ +var util = module.exports = {} + +util.sanitizeName = function (s){ return (s || "").replace(new RegExp("[^-_a-zA-Z0-9]", 'g'), "") } +util.sanitize = function (s){ return (s || "").replace(/<>&/g, "") } -- cgit v1.2.3-70-g09d2