mirror of
				https://github.com/severian-dev/sucker.severian.dev.git
				synced 2025-10-30 05:35:42 +00:00 
			
		
		
		
	fix: mooth's bug, I like to call it
This commit is contained in:
		| @@ -46,13 +46,19 @@ function findTagsBetween(content: string, startMarker: string, endMarker: string | ||||
|   if (endIdx === -1) return []; | ||||
|    | ||||
|   const section = content.slice(startIdx + startMarker.length + 2, endIdx); | ||||
|   const tagRegex = /<([^/>]+)>([^<]+)<\/\1>/g; | ||||
|   const matches = Array.from(section.matchAll(tagRegex)); | ||||
|   const matches: PersonaMatch[] = []; | ||||
|    | ||||
|   return matches.map(match => ({ | ||||
|     tag: match[1], | ||||
|     content: match[2].trim() | ||||
|   })); | ||||
|   const tagPattern = /<([^/>][^>]*)>([^]*?)<\/\1>/g; | ||||
|   let match; | ||||
|    | ||||
|   while ((match = tagPattern.exec(section)) !== null) { | ||||
|     matches.push({ | ||||
|       tag: match[1], | ||||
|       content: match[2].trim() | ||||
|     }); | ||||
|   } | ||||
|    | ||||
|   return matches; | ||||
| } | ||||
|  | ||||
| function extractBetweenTags(content: string, tag: string): string { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Severian
					Severian