From 51cd582045069fa8d32ca42f9c3511e376ca68b2 Mon Sep 17 00:00:00 2001 From: Sebi Date: Fri, 8 May 2020 16:21:16 +0200 Subject: [PATCH] Fix for commands having a space after '+' like ' - ++ weather' --- src/com/dre/brewery/utility/StringParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/dre/brewery/utility/StringParser.java b/src/com/dre/brewery/utility/StringParser.java index e37b285..c319957 100644 --- a/src/com/dre/brewery/utility/StringParser.java +++ b/src/com/dre/brewery/utility/StringParser.java @@ -21,6 +21,9 @@ public interface StringParser { plus = 1; line = line.substring(1); } + if (line.startsWith(" ")) { + line = line.substring(1); + } if (line.startsWith("/")) { line = line.substring(1); }