dcporter / didyoumean.js

A simple, optimized JS library & node.js module for matching short, human-quality input to a list of possibilities.
Other
174 stars 12 forks source link

Wrong result using defaults #4

Open lightzane opened 6 months ago

lightzane commented 6 months ago
let input = 'entrpsre';

const result = didYouMean(input, [
  'apple',
  'entrepreneur',
  'enterprise',
  'entry',
  'surprise',
]);

console.log(result); // null

Expected

'enterprise'

Actual

null