mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
CardDetailUtil.composeCardText add support for ",,," = line break
This commit is contained in:
@@ -309,8 +309,9 @@ public class CardDetailUtil {
|
|||||||
regex = "LEVEL [0-9]+\\+ \\[[0-99]+/[0-99]]+ ";
|
regex = "LEVEL [0-9]+\\+ \\[[0-99]+/[0-99]]+ ";
|
||||||
text = text.replaceAll(regex, "$0\r\n");
|
text = text.replaceAll(regex, "$0\r\n");
|
||||||
|
|
||||||
regex = "LEVEL [0-9]+\\+ ";
|
// ",,," becomes a line break
|
||||||
text = text.replaceAll(regex, "\r\n$0\r\n");
|
regex = ",,,";
|
||||||
|
text = text.replaceAll(regex, "\r\n");
|
||||||
|
|
||||||
// displays keywords that have dots in them a little better:
|
// displays keywords that have dots in them a little better:
|
||||||
regex = "\\., ";
|
regex = "\\., ";
|
||||||
|
|||||||
Reference in New Issue
Block a user