From bc8ac2e384643986e4e8108de7d53b255e2fd73f Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@gmail.com>
Date: Tue, 2 Sep 2014 23:43:50 +0200
Subject: [PATCH] =?UTF-8?q?oh=20la=20r=C3=A9gression=20!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/commands/get.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/get.pm b/lib/commands/get.pm
index f55c8aa..87b80aa 100644
--- a/lib/commands/get.pm
+++ b/lib/commands/get.pm
@@ -24,7 +24,7 @@ sub exec {
     my $req;
     my $sth;
 
-    my @words = ($msg =~ /([a-zA-Z0-9_-]+)/g);
+    my @words = ($msg =~ /(?:^| )([a-zA-Z0-9_-]+)/g);
     my @words_param;
     while ($msg =~ /([a-zA-Z0-9_-]+)/g) {
         unshift @words_param, '%'.$1.'%';
-- 
GitLab