diff options
Diffstat (limited to 'lib/util.js')
| -rw-r--r-- | lib/util.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js new file mode 100644 index 0000000..11c0cac --- /dev/null +++ b/lib/util.js @@ -0,0 +1,3 @@ +var util = module.exports = {} + +util.sanitizeName = function (s){ return (s || "").replace(new RegExp("[^-_a-zA-Z0-9]", 'g'), "") } |
