mirror of
https://github.com/plexusorg/Plex.git
synced 2025-06-28 22:46:40 +00:00
Remove non-ASCII characters from tags & chat messages (closes #48)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package dev.plex.util;
|
||||
|
||||
import com.google.common.base.CharMatcher;
|
||||
import dev.plex.Plex;
|
||||
import dev.plex.PlexBase;
|
||||
import dev.plex.storage.StorageType;
|
||||
@ -229,4 +230,9 @@ public class PlexUtils implements PlexBase
|
||||
pl.sendMessage(component);
|
||||
});
|
||||
}
|
||||
|
||||
public static String cleanString(String input)
|
||||
{
|
||||
return CharMatcher.ascii().retainFrom(input);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user