banktags: don't allow colon in tagtab names

The config server replaces periods in keys with colons. When the config is downloaded by the client, the colon is then replaced with a period.
This commit is contained in:
Ron Young
2020-10-01 11:11:20 -05:00
committed by Tomas Slusny
parent 0b221d3121
commit da6cb1bc65
2 changed files with 2 additions and 2 deletions

View File

@@ -233,7 +233,7 @@ public class BankTagsPlugin extends Plugin implements MouseWheelListener
return;
}
String replaced = value.replaceAll("[<>/]", "");
String replaced = value.replaceAll("[<>:/]", "");
if (!value.equals(replaced))
{
replaced = Text.toCSV(Text.fromCSV(replaced));

View File

@@ -97,7 +97,7 @@ import net.runelite.client.util.Text;
@Singleton
public class TabInterface
{
public static final IntPredicate FILTERED_CHARS = c -> "</>".indexOf(c) == -1;
public static final IntPredicate FILTERED_CHARS = c -> "</>:".indexOf(c) == -1;
private static final Color HILIGHT_COLOR = JagexColors.MENU_TARGET;
private static final String SCROLL_UP = "Scroll up";