From 1194cf18735939e525df4248c5a3424789fde60d Mon Sep 17 00:00:00 2001 From: Kobert Date: Mon, 9 Apr 2018 16:12:31 +0200 Subject: Fix for spellcorrecting chars --- DiscoBot/Auxiliary/SpellCorrect.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'DiscoBot/Auxiliary/SpellCorrect.cs') diff --git a/DiscoBot/Auxiliary/SpellCorrect.cs b/DiscoBot/Auxiliary/SpellCorrect.cs index 1b740e8..48f6a57 100644 --- a/DiscoBot/Auxiliary/SpellCorrect.cs +++ b/DiscoBot/Auxiliary/SpellCorrect.cs @@ -63,6 +63,10 @@ public double CompareExact(string s, string q) { + + s = s.ToLower(); + q = q.ToLower(); + int i, j; const double Match = 3.0; const double Gap = -2.0; -- cgit v1.2.3-54-g00ecf