mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Make the prefix filter operator be case insensitive by default
This commit is contained in:
		| @@ -19,16 +19,13 @@ exports.prefix = function(source,operator,options) { | ||||
| 	var results = []; | ||||
| 	// Function to check an individual title | ||||
| 	function checkTiddler(title) { | ||||
| 		var tiddler = options.wiki.getTiddler(title); | ||||
| 		if(tiddler) { | ||||
| 			var match = tiddler.fields.title.substr(0,operator.operand.length) === operator.operand; | ||||
| 		var match = title.substr(0,operator.operand.length).toLowerCase() === operator.operand.toLowerCase(); | ||||
| 		if(operator.prefix === "!") { | ||||
| 			match = !match; | ||||
| 		} | ||||
| 		if(match) { | ||||
| 			results.push(title); | ||||
| 		} | ||||
| 		} | ||||
| 	}; | ||||
| 	// Iterate through the source tiddlers | ||||
| 	if($tw.utils.isArray(source)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston