Repository navigation
网页元数据:标题、作者名里的撇号不再截断内容 - #37
Merged
Merged
Conversation
Owner
|
感谢修复!已合进 v1.3.3 分支,随 1.3.3 发布,届时这个 PR 会自动标为已合并。 |
Contributor
Author
|
谢谢!等 1.3.3 发布就好。 |
weipangit
pushed a commit
to weipangit/easyread
that referenced
this pull request
Oct 6, 2026
…ADME 改正数据存放位置,加上应用内更新说明(Windows、macOS、Linux AppImage)、mac 自签名证书和 paper-xray 贡献者署名 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
sources._page_meta读网页<meta>标签时,content的值用的是["']([^"']*)["']:不管值是用哪种引号括起来的,只要碰到另一种引号就截断。论文标题和作者名里撇号很常见,所以从期刊 / 会议页面导入时元数据会被截掉:title_en是Don,作者是ODon't Stop Pretraining: Adapt Language Models to Domains and Tasks、O'Brien, Sean单引号括起来、里面有双引号的值(
content='Say "hi"')也是同样的问题。现在
content的值按开头的引号配对("…"或'…'),两个正则(name 在前 / content 在前)都改了;citation_pdf_url等其他标签的读取方式不变。怎么复现
测试
新增
tests/test_sources.py(撇号 / 双引号、实体解码、两种属性顺序)。新测试在修改前失败,修改后通过。