Fix generating simple language from title

This commit is contained in:
FooIbar committed 2024-03-21 15:19:46 +08:00
1 parent f7259c5b40
commit 5b59dabc66
1 file changed
+1 -1
@@ -122,7 +122,7 @@ interface GalleryInfo {
private fun generateSLangFromTitle(title: String): String? {
for (i in S_LANGS.indices) {
if (S_LANG_PATTERNS[i].matches(title)) {
if (S_LANG_PATTERNS[i].containsMatchIn(title)) {
return S_LANGS[i]
}
}