exports.search: don't break the loop if encoding is base64, just continue (#9247)

This makes it possible to find tiddlers with base64 encoding using `search:*:words[searchterm]` for example

fixes #9246
This commit is contained in:
Simon Huber 2025-10-29 12:15:54 +01:00 committed by GitHub
parent d733b77e2f
commit deed8631d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1443,7 +1443,7 @@ exports.search = function(text,options) {
// Don't search the text field if the content type is binary
var fieldName = searchFields[fieldIndex];
if(fieldName === "text" && contentTypeInfo.encoding !== "utf8") {
break;
continue;
}
var str = tiddler.fields[fieldName],
t;