Skip to content
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

spellcheck: replacement happen in the url alias map #66

Open
lzufalcon opened this issue Sep 5, 2022 · 3 comments
Open

spellcheck: replacement happen in the url alias map #66

lzufalcon opened this issue Sep 5, 2022 · 3 comments

Comments

@lzufalcon
Copy link

原文:

这里是 [链接][1]。
...

[1]: https://example.com/xxx/yyy/zzz-linux

运行 Autocorrect 之后:

这里是 [链接][1]。
...

[1]: https://example.com/xxx/yyy/zzz-Linux

The linux has been wrongly replaced by Linux, this should not happen.

@huacnlee
Copy link
Owner

5f488f5

刚才我写了个测试验证一下,没这个问题

@lzufalcon
Copy link
Author

5f488f5

刚才我写了个测试验证一下,没这个问题

再次确认了一下最新的 autocorrect-cli (v1.10.4),依然能复现:

$ autocorrect --version
AutoCorrect 1.10.4

$ git diff /path/to/some.md
-[004]: https://gitee.com/tinylab/riscv-linux
-[005]: https://gitee.com/tinylab/linux-ios
+[004]: https://gitee.com/tinylab/riscv-Linux
+[005]: https://gitee.com/tinylab/linux-iOS
 [006]: https://gitee.com/tinylab/ios-zzz
-[007]: https://example.com/xxx/yyy/zzz-ios
-[008]: https://example.com/xxx/yyy/ios-linux
+[007]: https://example.com/xxx/yyy/zzz-iOS
+[008]: https://example.com/xxx/yyy/ios-Linux

我用的是 rust + musl + 静态编译的版本,稍后验证一下其他情况。

@lzufalcon
Copy link
Author

确认过,用 glibc 动态链接的 autocorrect-cli,问题同样存在,不知道是哪里还有差异了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants