Explorar o código

[skip ci] fix typo

Xwite %!s(int64=3) %!d(string=hai) anos
pai
achega
9877a6edf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/main/java/io/legado/app/utils/UrlUtil.kt

+ 1 - 1
app/src/main/java/io/legado/app/utils/UrlUtil.kt

@@ -155,7 +155,7 @@ object UrlUtil {
         //检查截取的后缀字符是否合法 [a-zA-Z0-9]
         //检查截取的后缀字符是否合法 [a-zA-Z0-9]
         val fileSuffixRegex = Regex("^[a-z\\d]+$", RegexOption.IGNORE_CASE)
         val fileSuffixRegex = Regex("^[a-z\\d]+$", RegexOption.IGNORE_CASE)
         return if (suffix.length > 5 || !suffix.matches(fileSuffixRegex)) {
         return if (suffix.length > 5 || !suffix.matches(fileSuffixRegex)) {
-            AppLog.put("Cannot find illegal suffix:\n target: $str\nsuffix: $suffix")
+            AppLog.put("Cannot find legal suffix:\n target: $str\n suffix: $suffix")
             default ?: "ext"
             default ?: "ext"
         } else {
         } else {
             suffix
             suffix