From 5b59dabc66b36312a2d2fd54aa2d940e652e2395 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:11:45 +0800 Subject: [PATCH] Fix generating simple language from title --- .../main/kotlin/com/hippo/ehviewer/client/data/GalleryInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/client/data/GalleryInfo.kt b/app/src/main/kotlin/com/hippo/ehviewer/client/data/GalleryInfo.kt index 8f8105ed4..f4db6ca2d 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/client/data/GalleryInfo.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/client/data/GalleryInfo.kt @@ -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] } }