mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-12 17:26:17 +00:00
Add parse and fetch pasted markdown titles with url
This commit is contained in:
committed by
Junyoung Choi
parent
5e134f990e
commit
d81e69bf00
@@ -132,8 +132,13 @@ export function isObjectEqual (a, b) {
|
||||
return true
|
||||
}
|
||||
|
||||
export function isMarkdownTitleURL (str) {
|
||||
return /(^#{1,6}\s)(?:\w+:|^)\/\/(?:[^\s\.]+\.\S{2}|localhost[\:?\d]*)/.test(str)
|
||||
}
|
||||
|
||||
export default {
|
||||
lastFindInArray,
|
||||
escapeHtmlCharacters,
|
||||
isObjectEqual
|
||||
isObjectEqual,
|
||||
isMarkdownTitleURL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user