mirror of
https://github.com/Aminark/legado-ios.git
synced 2026-10-24 04:41:23 +08:00
feat: 支持 EPUB 阅读并改善规则兼容与阅读稳定性
支持 EPUB 2/3 导入、目录、封面和章节插图,保留本地书管理与阅读进度。 修复 JSON 模板、动态替换与请求参数兼容,以及 RSS 翻页和连续滚动定位。 更新编辑器工具栏和回归测试,发布版本为 0.1.12(build 18)。
This commit is contained in:
@@ -92,9 +92,10 @@ struct ReplaceRuleEditorView: View {
|
||||
RuleCodeFieldView(title: "匹配内容", path: "pattern", text: $rule.pattern, language: .regex)
|
||||
} label: { fieldPreview("匹配内容", value: rule.pattern) }
|
||||
NavigationLink {
|
||||
RuleCodeFieldView(title: "替换为", path: "replacement", text: $rule.replacement, language: .regex)
|
||||
RuleCodeFieldView(title: "替换为", path: "replacement", text: $rule.replacement,
|
||||
language: rule.isRegex && rule.replacement.hasPrefix("@js:") ? .javascript : .regex)
|
||||
} label: { fieldPreview("替换为(留空即删除)", value: rule.replacement) }
|
||||
Text("正则替换使用 $1、$2 引用捕获组;普通文本替换按字面匹配。")
|
||||
Text("正则替换使用 $1、$2 引用捕获组;以 @js: 开头可运行 JavaScript,result 为当前匹配文本,可读取 book 和 chapter。普通文本替换按字面匹配。")
|
||||
.font(.footnote).foregroundStyle(.secondary)
|
||||
}
|
||||
Section("作用范围") {
|
||||
|
||||
Reference in New Issue
Block a user