mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: 省略协议的链接不识别为本地链接
This commit is contained in:
@@ -93,7 +93,7 @@ function convertLink (state: StateCore) {
|
||||
return
|
||||
}
|
||||
|
||||
if (/^[^:]*:/.test(attrVal)) { // xxx: : 开头不转换
|
||||
if (/^[^:]*:/.test(attrVal) || attrVal.startsWith('//')) { // xxx: : 开头不转换
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user