Переглянути джерело

Fix commands losing their trailing whitespace

Fixes issue 3901

Change-Id: Ic2293c067d7fa673dec9ce4a32127f87fe52c35f
Reviewed-on: http://gerrit.dmdirc.com/1040
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.4rc1
Chris Smith 14 роки тому
джерело
коміт
951640157e

+ 1
- 1
src/com/dmdirc/commandparser/CommandArguments.java Переглянути файл

@@ -177,7 +177,7 @@ public class CommandArguments {
177 177
         Logger.assertTrue(start <= end + 1);
178 178
 
179 179
         final Pattern pattern = Pattern.compile("(\\S+\\s+){" + (start) + "}"
180
-                + "((\\S+\\s+){" + Math.max(0, end - start) + "}\\S+).*?");
180
+                + "((\\S+\\s+){" + Math.max(0, end - start) + "}\\S+(\\s+$)?).*?");
181 181
         final Matcher matcher = pattern.matcher(line);
182 182
 
183 183
         return matcher.matches() ? matcher.group(2) : "";

Завантаження…
Відмінити
Зберегти