Fix generating simple language from title
This commit is contained in:
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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user