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

需要更宽泛的链接字符串识别 #30

Closed
KID-1912 opened this issue Jan 22, 2025 · 0 comments
Closed

需要更宽泛的链接字符串识别 #30

KID-1912 opened this issue Jan 22, 2025 · 0 comments

Comments

@KID-1912
Copy link

目前当识别到json某个字段为链接字符串时,会作为a标签回显以支持点击跳转;这看起来很不错!
但是我发现 【识别链接字符串】有待改善,具体表现为当链接字符串中存在“?”等字符时,不能被识别为链接导致没有上述的点击跳转特性;
也就是目前的判断【链接字符串】可能过于严格或不通用,期待更准确合理的匹配,如正则匹配字符串:
/^(((ht|f)tps?)://)?(^!@#$%^&*?.\s-?.)+[a-z]{2,6}/?/ 即满足识别为链接URL
期待完善!!

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

No branches or pull requests

1 participant