diff --git a/app/src/main/java/io/legado/app/help/storage/OldRule.kt b/app/src/main/java/io/legado/app/help/storage/OldRule.kt index e58c3d682..ede6f2c13 100644 --- a/app/src/main/java/io/legado/app/help/storage/OldRule.kt +++ b/app/src/main/java/io/legado/app/help/storage/OldRule.kt @@ -75,8 +75,12 @@ object OldRule { nextTocUrl = jsonItem.readString("ruleChapterUrlNext") ) ruleToc = GSON.toJson(chapterRule) + var content = jsonItem.readString("ruleBookContent") ?: "" + if (content.startsWith("$") && !content.startsWith("$.")) { + content = content.substring(1) + } val contentRule = ContentRule( - content = jsonItem.readString("ruleBookContent"), + content = content, nextContentUrl = jsonItem.readString("ruleContentUrlNext") ) ruleContent = GSON.toJson(contentRule)