This commit is contained in:
barisusakli
2014-06-10 14:02:24 -04:00
parent e5d465392f
commit eb1b48092d

View File

@@ -35,6 +35,9 @@ module.exports = function(Topics) {
};
function cleanUpTag(tag) {
if (typeof tag !== 'string' || !tag.length ) {
return '';
}
tag = tag.trim().toLowerCase();
tag = tag.replace(/[,\/#!$%\^&\*;:{}=_`<>'"~()?\|]/g, '');
tag = tag.substr(0, meta.config.maximumTagLength || 15);