* properly deal with language codes for various Chinese-like SublanguageIDs and LanguageNames

@see https://www.filebot.net/forums/viewtopic.php?f=8&t=2337#p13444
This commit is contained in:
Reinhard Pointner 2015-01-15 18:06:55 +00:00
parent 1913dfc13c
commit abe201d271
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class Language implements Serializable {
}
public boolean matches(String code) {
return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code);
return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code) || code.toLowerCase().contains(name.toLowerCase());
}
@Override