-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The logic was changed awhile back to use a prefix match in JavaScript which made it extremely noisy for short prefixes (e.g. “major h. b. ferguson” would match every word starting with h or b). This changes the logic to convert both terms to lower-case, trims punctuation and leading/trailing whitespace, and then tests for exact matches so e.g. “h.” would match “H.”, “H”, “h!”, etc. but not “How” or “oh”. 20a8cd8 3b18aa0
- Loading branch information
Showing
2 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters