From 398b8d85bf9af774a97346cf367542a9124d7dac Mon Sep 17 00:00:00 2001
From: Adrien Nunes <adrien.nunes@ensiie.fr>
Date: Tue, 12 Oct 2021 20:30:36 +0200
Subject: [PATCH] =?UTF-8?q?Fix=20'qui'=20d=C3=A9but=20de=20ligne?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 commands/CommandQui.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/CommandQui.js b/commands/CommandQui.js
index 856f45c..6790c9d 100644
--- a/commands/CommandQui.js
+++ b/commands/CommandQui.js
@@ -5,7 +5,7 @@ class CommandQui{
     constructor(client){
         this.client = client;
         this.sentences = ["Sûrement <who>...", "<who>", "<who> !", "<who> ??", "Vous parlez de <who> ?", "C'est <who>.", "Bah, <who>.", "Bah <who> connard", "Mmmh <who> ?", "<who> ?", "<who>, on te parle"];
-        this.quiRegExp = new RegExp('[^a-z]qui[^a-z]', 'i');
+        this.quiRegExp = new RegExp('([^a-z]|^)qui[^a-z]', 'i'); /**'qui' pas dans un mot */
     }
 
     getRandomQui(){
-- 
GitLab