Tokens rework:

- added reminder / helper tokens support (example: Copy, Morph, Day // Night, related to #10139);
 - added verify checks for reminder tokens;
 - added images download for reminder tokens;
This commit is contained in:
Oleg Agafonov 2023-04-27 18:45:50 +04:00
parent 0e1e6a0f21
commit f86cf176d7
11 changed files with 242 additions and 40 deletions

View file

@ -976,7 +976,7 @@ public final class CardUtil {
|| text.startsWith("any ")) {
return text;
}
return vowels.contains(text.substring(0, 1)) ? "an " + text : "a " + text;
return (!text.isEmpty() && vowels.contains(text.substring(0, 1))) ? "an " + text : "a " + text;
}
public static String italicizeWithEmDash(String text) {