mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Dynannotate: Fix off-by-one error for end of annotation text
This commit is contained in:
		| @@ -78,7 +78,7 @@ exports.TextMap.prototype.findText = function(targetString,targetPrefix,targetSu | |||||||
| 	if(startPos !== -1) { | 	if(startPos !== -1) { | ||||||
| 		startPos += targetPrefix.length; | 		startPos += targetPrefix.length; | ||||||
| 		var startMetadata = this.locateMetadata(startPos), | 		var startMetadata = this.locateMetadata(startPos), | ||||||
| 			endMetadata = this.locateMetadata(startPos + targetString.length); | 			endMetadata = this.locateMetadata(startPos + targetString.length - 1); | ||||||
| 		if(startMetadata && endMetadata) { | 		if(startMetadata && endMetadata) { | ||||||
| 			return { | 			return { | ||||||
| 				startNode: startMetadata.domNode, | 				startNode: startMetadata.domNode, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jeremy@jermolene.com
					jeremy@jermolene.com