mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
fix regex for windows' url
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
if (className.indexOf('cm-url') !== -1) {
|
if (className.indexOf('cm-url') !== -1) {
|
||||||
const match = /^\((.*)\)|\[(.*)\]|(.*)$/.exec(el.textContent)
|
const match = /^\((.*)\)|\[(.*)\]|(.*)$/.exec(el.textContent)
|
||||||
const url = match[1] || match[2] || match[3]
|
const url = match[1] || match[2] || match[3]
|
||||||
return /^:storage\//.test(url) ? null : url
|
return /^:storage(?:\/|%5C)/.test(url) ? null : url
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|||||||
Reference in New Issue
Block a user