SkriptLang / skript-docs

Documentation Site for Skript Plugin
https://docs.skriptlang.org/
GNU General Public License v3.0
2 stars 7 forks source link

💡 Make searching less trict #59

Open AyhamAl-Ali opened 2 months ago

AyhamAl-Ali commented 2 months ago

e.g. Vectors - Length wouldn't be matched if user searched for vectors length so something like this would easily be fixed by excluding/filtering some symbols from titles (only) as otherwise it may match unexpected results + heavier process. Right now I am thinking of excluding the regex [-/&\(\)]

Thanks to @APickledWalrus for this finding

Issue: image

Expectation: (without using -) image

Romitou commented 1 month ago

Perhaps it would be interesting to use string comparison algorithms such as Levenshtein or Jaro-Winkler to provide results similar to the search if there are no results with the strict search?