/* Static methods */
private static String[] getCards(String msg, String regex)
{
- String cards = Message.clean(msg)
+ String cards = msg
.replaceAll(regex, "$1")
.replaceAll(",", " ")
.replaceAll("♠", "s")
this.cards.hand = Spades.getCards(txt, "You have: (.*)");
this.cards.requestRender();
}
- if (txt.matches("turn!")) {
- this.cards.pile = Spades.getCards(txt, ".*turn! (.*)");
+ if (txt.matches(".*turn!.*")) {
+ this.cards.pile = Spades.getCards(txt, ".*turn! \\((.*)\\)");
this.cards.requestRender();
}
}