1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add comment to the STORAGE_FOLDER_PLACEHOLDER variable

This commit is contained in:
Baptiste Augrain
2018-10-09 10:15:30 +02:00
parent 33f6926916
commit 1922c8dbf8

View File

@@ -53,6 +53,8 @@
if (className.indexOf('cm-url') !== -1) {
const match = /^\((.*)\)|\[(.*)\]|(.*)$/.exec(el.textContent)
const url = match[1] || match[2] || match[3]
// `:storage` is the value of the variable `STORAGE_FOLDER_PLACEHOLDER` defined in `browser/main/lib/dataApi/attachmentManagement`
return /^:storage(?:\/|%5C)/.test(url) ? null : url
}