Skip to content

Commit 2e216a4

Browse files
committed
changing our similarity distance to match commonly used in Symfony core
1 parent 64d0be2 commit 2e216a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ const publicApiProxy = new Proxy(publicApi, {
792792
}
793793

794794
let errorMessage = `${chalk.red(`Encore.${prop}`)} is not a recognized property or method.`;
795-
if (minDistance < 3) {
795+
if (minDistance < (prop.length / 3)) {
796796
errorMessage += ` Did you mean ${chalk.green(`Encore.${similarProperty}`)}?`;
797797
}
798798

0 commit comments

Comments
 (0)