Fix string sanitising (#62)

This commit is contained in:
Eva 2023-08-25 23:03:37 +01:00 committed by GitHub
parent bc5d0476ee
commit 668460f486
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,6 +281,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);
}
}