mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch 'master' into newmaster2
This commit is contained in:
@@ -3037,8 +3037,8 @@ public class AbilityUtils {
|
|||||||
if (isDescriptive) {
|
if (isDescriptive) {
|
||||||
newWord = "<strike>" + originalWord + "</strike> " + newWord;
|
newWord = "<strike>" + originalWord + "</strike> " + newWord;
|
||||||
}
|
}
|
||||||
// use word boundaries and keep negations
|
// use word boundaries and keep negations - java only supports bounded maximum length in negative lookbehind
|
||||||
return text.replaceAll((isDescriptive ? "(?<!>)" : "") + "(?<!named.*)\\b(non)?" + originalWord, "$1" + newWord);
|
return text.replaceAll((isDescriptive ? "(?<!>)" : "") + "(?<!named.{0,100})\\b(non)?" + originalWord, "$1" + newWord);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final String getSVar(final CardTraitBase ability, final String sVarName) {
|
public static final String getSVar(final CardTraitBase ability, final String sVarName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user