Skip to content
This repository was archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Tweak regex for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ikikko committed Jan 2, 2015
1 parent 583b57c commit c412372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class WebhookExecutorFactory {
public static WebhookExecutor create(StaplerRequest req, StaplerResponse rsp, String message) {
LinkedList<String> messageList = new LinkedList<>(Arrays.asList(message.split("\\s")));
LinkedList<String> messageList = new LinkedList<>(Arrays.asList(message.split("\\s+")));
String botUser = messageList.poll(); // not used
String command = messageList.poll();

Expand Down

0 comments on commit c412372

Please sign in to comment.