resync with master ... hoping it works
This commit is contained in:
Justin Garza
2025-01-20 15:41:31 -05:00
parent 2dd37ed5c0
commit 68cef3e672
33 changed files with 5662 additions and 176 deletions
+17
View File
@@ -173,3 +173,20 @@ export function parseColor(string) {
return [color.red / 255, color.green / 255, color.blue / 255, color.alpha / 255];
}
// used for searching
// Simple fuzzy match function
// NOTE: i'll improve the fuzzy function before rolling this out
/*
function fuzzyMatch(text, query) {
let queryIndex = 0;
for (let i = 0; i < text.length && queryIndex < query.length; i++) {
if (text[i] === query[queryIndex]) {
queryIndex++;
}
}
return queryIndex === query.length; // Returns true if all chars in query matched in
order
}
*/