mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
fixed CardDetailUtil: currently if more equips are attached to one creature, it only shows the first name, because of the (nr) in the name it does think of it as reminder text.
FSkin: make the pattern not-greedy so it only does hide the number from it.
This commit is contained in:
@@ -976,9 +976,9 @@ public class FSkin {
|
||||
|
||||
if (formatReminderText) {
|
||||
//format reminder text in italics (or hide if preference set)
|
||||
pattern = "\\((.+)\\)";
|
||||
pattern = " \\((.+?)\\)";
|
||||
replacement = FModel.getPreferences().getPrefBoolean(FPref.UI_HIDE_REMINDER_TEXT) ?
|
||||
"" : "<i>\\($1\\)</i>";
|
||||
"" : " <i>\\($1\\)</i>";
|
||||
str = str.replaceAll(pattern, replacement);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user