fix: don't check for contains before replace
This commit is contained in:
parent
0f22f7c4ae
commit
d64db95416
|
@ -24,9 +24,7 @@ internal static class Util {
|
||||||
//
|
//
|
||||||
// break;
|
// break;
|
||||||
case TextPayload txt:
|
case TextPayload txt:
|
||||||
if (txt.Text.Contains(name)) {
|
txt.Text = txt.Text.Replace(name, replacement);
|
||||||
txt.Text = txt.Text.Replace(name, replacement);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue