forked from External/mage
some changes to payment text generation
This commit is contained in:
parent
fe42bc6e49
commit
4868afe0e0
8 changed files with 25 additions and 48 deletions
|
|
@ -1284,8 +1284,11 @@ public final class CardUtil {
|
|||
return zcc;
|
||||
}
|
||||
|
||||
public static boolean checkCostWords(String text) {
|
||||
return text != null && costWords.stream().anyMatch(text.toLowerCase(Locale.ENGLISH)::startsWith);
|
||||
public static String addCostVerb(String text) {
|
||||
if (costWords.stream().anyMatch(text.toLowerCase(Locale.ENGLISH)::startsWith)) {
|
||||
return text;
|
||||
}
|
||||
return "pay " + text;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue