From 810f9362e5e468b6473f018f97ebeb205ef516fa Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 23 Oct 2019 14:14:39 +0800 Subject: [PATCH] up --- .../java/io/legado/app/help/JsExtensions.kt | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index ad4024379..1db26a4fe 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -3,8 +3,6 @@ package io.legado.app.help import io.legado.app.model.analyzeRule.AnalyzeUrl import io.legado.app.utils.EncoderUtils import io.legado.app.utils.MD5Utils -import io.legado.app.utils.StringUtils -import java.util.regex.Pattern @Suppress("unused") @@ -31,22 +29,6 @@ object JsExtensions { return EncoderUtils.base64Decoder(str) } - /** - * 章节数转数字 - */ - fun toNumChapter(s: String?): String? { - if (s == null) { - return null - } - val pattern = Pattern.compile("(第)(.+?)(章)") - val matcher = pattern.matcher(s) - return if (matcher.find()) { - matcher.group(1) + StringUtils.stringToInt(matcher.group(2)) + matcher.group(3) - } else { - s - } - } - fun strToMd5By32(str: String?): String? { return MD5Utils.strToMd5By32(str) }