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:
Hanmac
2016-05-27 12:02:34 +00:00
parent 74423305e2
commit 1b1b90a1e6
2 changed files with 7 additions and 32 deletions

View File

@@ -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);
}