Skip to content

fix(4.4.9): 修复读取文件,没有获取到内部超链接问题 #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xiazhihou
Copy link

Summary

当前 ExcelJS 在读取 Excel 文件时,无法正确解析单元格内的内部超链接(如跳转到同一工作簿中其他单元格的超链接)。这导致用户在使用 ExcelJS 处理含有内部导航链接的 Excel 文件时,丢失了这部分信息,影响了功能完整性。

本 PR 旨在修复该问题,通过更新解析逻辑,确保 ExcelJS 能够正确识别并还原 Excel 文件中的内部超链接。这一改动提升了库对 Excel 功能的支持完整性,使开发者能够更准确地读取和处理复杂 Excel 文件中的内容。

Test plan

为验证此更改的有效性,我进行了以下测试步骤:

准备一个包含多种类型超链接的 Excel 文件(包括外部 URL、内部锚点、邮件链接等)。
使用修改后的 ExcelJS 版本读取该文件。
输出每个单元格的 hyperlink 属性进行检查。

Related to source code (for typings update)

@zurmokeeper
Copy link
Owner

@xiazhihou 感谢,可以加一下源文件吗,我这边看下怎么补一个测试用例

@zurmokeeper zurmokeeper self-assigned this Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants