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:
@@ -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));
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user