blob: d4b6b8adc04d9eff31e9e0082bd986237356fe23 (
plain)
1
2
3
4
5
6
|
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, "") }
util.now = function(){ return Math.floor( (+ new Date()) / 1000 ) }
|