mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01: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); | ||||
|         } | ||||
| 
 | ||||
|         content = removeTrilumTags(content); | ||||
|         content = removeTriliumTags(content); | ||||
| 
 | ||||
|         content = content.replace(/<h1>([^<]*)<\/h1>/gi, (match, text) => { | ||||
|             if (noteTitle.trim() === text.trim()) { | ||||
| @ -393,7 +393,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) { | ||||
|         return content; | ||||
|     } | ||||
| 
 | ||||
|     function removeTrilumTags(content) { | ||||
|     function removeTriliumTags(content) { | ||||
|         const tagsToRemove = [ | ||||
|             '<h1 data-trilium-h1>([^<]*)<\/h1>', | ||||
|             '<title data-trilium-title>([^<]*)<\/title>' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam