Fix string sanitising (#62)

This commit is contained in:
Eva 2023-08-25 23:03:37 +01:00 committed by Telesphoreo
parent e4f18a24cc
commit 2331cb9f80

View File

@ -262,6 +262,6 @@ public class PlexUtils implements PlexBase
public static String cleanString(String input)
{
return CharMatcher.ascii().retainFrom(input);
return CharMatcher.forPredicate(c -> Character.getDirectionality(c) != Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE && Character.getDirectionality(c) != Character.DIRECTIONALITY_RIGHT_TO_LEFT).retainFrom(input);
}
}