summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/SpellCorrect.cs
diff options
context:
space:
mode:
authorKobert <Kassian.Kobert@gmail.com>2018-04-09 16:12:31 +0200
committerKobert <Kassian.Kobert@gmail.com>2018-04-09 16:12:31 +0200
commit1194cf18735939e525df4248c5a3424789fde60d (patch)
tree1f9c11c142b60672ef42e317b87e95170cbf6a79 /DiscoBot/Auxiliary/SpellCorrect.cs
parentdb846b1eebf4ee35ea7f72024c0db753b73d0177 (diff)
Fix for spellcorrecting chars
Diffstat (limited to 'DiscoBot/Auxiliary/SpellCorrect.cs')
-rw-r--r--DiscoBot/Auxiliary/SpellCorrect.cs4
1 files changed, 4 insertions, 0 deletions
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;