From 18810e720311be62e7649a6303a9fe68a2d0e04c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 25 May 2014 12:49:41 -0400 Subject: [PATCH] allow dots in tags --- src/topics/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/topics/tags.js b/src/topics/tags.js index bb982ee3ef..ae53593deb 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -36,9 +36,9 @@ module.exports = function(Topics) { function cleanUpTag(tag) { tag = tag.trim().toLowerCase(); - tag = tag.replace(/[\.,\/#!$%\^&\*;:{}=_`<>'"~()?\|]/g, ''); + tag = tag.replace(/[,\/#!$%\^&\*;:{}=_`<>'"~()?\|]/g, ''); tag = tag.substr(0, meta.config.maximumTagLength || 15); - var matches = tag.match(/^-*(.+?)-*$/); + var matches = tag.match(/^[.-]*(.+?)[.-]*$/); if (matches && matches.length > 1) { tag = matches[1]; }