mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
typo
This commit is contained in:
parent
840ac2d63e
commit
ba34df2e15
@ -311,7 +311,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|||||||
return /^(?:[a-z]+:)?\/\//i.test(url);
|
return /^(?:[a-z]+:)?\/\//i.test(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
content = removeTrilumTags(content);
|
content = removeTriliumTags(content);
|
||||||
|
|
||||||
content = content.replace(/<h1>([^<]*)<\/h1>/gi, (match, text) => {
|
content = content.replace(/<h1>([^<]*)<\/h1>/gi, (match, text) => {
|
||||||
if (noteTitle.trim() === text.trim()) {
|
if (noteTitle.trim() === text.trim()) {
|
||||||
@ -393,7 +393,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeTrilumTags(content) {
|
function removeTriliumTags(content) {
|
||||||
const tagsToRemove = [
|
const tagsToRemove = [
|
||||||
'<h1 data-trilium-h1>([^<]*)<\/h1>',
|
'<h1 data-trilium-h1>([^<]*)<\/h1>',
|
||||||
'<title data-trilium-title>([^<]*)<\/title>'
|
'<title data-trilium-title>([^<]*)<\/title>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user