Refactoring: fix small errors, simplify 'sortedByLevehnstein'-function, improve error messgae

This commit is contained in:
Pieter Vander Vennet 2025-07-03 17:33:29 +02:00
parent 97b8202b14
commit 8a0023377a
13 changed files with 27 additions and 19 deletions

View file

@ -166,8 +166,7 @@
"'; did you perhaps mean one of: " +
Utils.sortedByLevenshteinDistance(
type,
Validators.AllValidators.map((v) => v.name),
(v) => v
Validators.AllValidators.map((v) => v.name)
)
.slice(0, 5)
.join(", ")