From c890ef8328cac4a54d55479a9f2a1cdf1fd60373 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@cervoi.se> Date: Sun, 25 Jan 2015 00:24:11 +0100 Subject: [PATCH] in search with !get, a word can't contain a # --- lib/commands/get.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/commands/get.pm b/lib/commands/get.pm index 2273f0e..e750361 100644 --- a/lib/commands/get.pm +++ b/lib/commands/get.pm @@ -27,8 +27,9 @@ sub exec { my $req; my $rows; - my @words = ($msg =~ /(?:^| )([\S]+)/g); - print "@words"; + my @words = ($msg =~ /(?:^| )([^#\s]+)/g); + print "@words\n"; + print "@tags\n"; if (not defined $last_req or $msg ne $last_req) { my $dbh = utils::db::get_session; -- GitLab