Skip to content
Snippets Groups Projects
Commit 0136397d authored by dgelessus's avatar dgelessus
Browse files

Fix a bug that made splitting of command bodies always fail

parent ff7235a8
Branches
Tags
No related merge requests found
...@@ -106,8 +106,8 @@ public final class CommandUtils { ...@@ -106,8 +106,8 @@ public final class CommandUtils {
if (parameters.getBodyParam().isPresent()) { if (parameters.getBodyParam().isPresent()) {
final Matcher bodySplitMatcher = BODY_SPLIT_PATTERN.matcher(remainingArgs.getValue()); final Matcher bodySplitMatcher = BODY_SPLIT_PATTERN.matcher(remainingArgs.getValue());
if (bodySplitMatcher.find()) { if (bodySplitMatcher.find()) {
remainingArgs = remainingArgs.substring(0, bodySplitMatcher.start());
final PositionedString bodyValue = remainingArgs.substring(bodySplitMatcher.end()); final PositionedString bodyValue = remainingArgs.substring(bodySplitMatcher.end());
remainingArgs = remainingArgs.substring(0, bodySplitMatcher.start());
splitArgs.add(parameters.getBodyParam().get(), bodyValue); splitArgs.add(parameters.getBodyParam().get(), bodyValue);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment