fix: 省略协议的链接不识别为本地链接

This commit is contained in:
purocean
2021-09-17 16:52:03 +08:00
parent 6ef1144ffa
commit 1eccd58977
+1 -1
View File
@@ -93,7 +93,7 @@ function convertLink (state: StateCore) {
return
}
if (/^[^:]*:/.test(attrVal)) { // xxx: : 开头不转换
if (/^[^:]*:/.test(attrVal) || attrVal.startsWith('//')) { // xxx: : 开头不转换
return
}