Skip to content
This repository has been archived by the owner on Jul 16, 2018. It is now read-only.

Commit

Permalink
Fix Bug 902043 - Don't strip the hashtag from tag search terms
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher De Cairos committed Aug 26, 2013
1 parent 2aa8405 commit ad8ab90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions routes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ module.exports = function(req, res) {
var tags = query.split(',');
options.tags = [];
options.tags[0] = tags.map(function( t ) {
// check for hashtag, remove
t = t.trim();
if ( t[0] === '#' ) {
return t.slice(1);
}
return t;
return t.trim();
});
} else {
// check for '@', remove
Expand Down

0 comments on commit ad8ab90

Please sign in to comment.