Make searching just more robust, by making it a lot dumber

This commit is contained in:
2025-10-13 15:27:55 +01:00
parent 6ce8f6dbdc
commit d5253f073b
3 changed files with 3 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ export const parseDescriptionDefault = (reg: Register, description: string) => {
for (const line of descriptionLines) {
reg.source.push(line);
reg.search += line + " ";
reg.search += line.toLowerCase() + " ";
const trimmedLine = line.trim();
const spaces_at_start = line.match(/^(\s*)/)?.[0].length || 0;

View File

@@ -17,7 +17,7 @@ export const parseDescriptionF0 = (reg: Register, description: string) => {
for (const line of descriptionLines) {
reg.source.push(line);
reg.search += line + " ";
reg.search += line.toLowerCase() + " ";
const trimmedLine = line.trim();
const spaces_at_start = line.match(/^(\s*)/)?.[0].length || 0;