MangaDex: replace matchEntire with matches (#13743)

This commit is contained in:
stevenyomi 2022-10-07 18:59:39 +08:00 committed by GitHub
parent d2f3587d8c
commit 806856965e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class MangaDexHelper(private val lang: String) {
/**
* Check if the string is a valid uuid
*/
fun isUuid(text: String) = MDConstants.uuidRegex.matchEntire(text) != null
fun isUuid(text: String) = MDConstants.uuidRegex matches text
/**
* Get the manga offset pages are 1 based, so subtract 1