Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Fix 290, Look up command for Dictionary.com displays correct result
Browse files Browse the repository at this point in the history
  • Loading branch information
KhushilMistry committed Oct 23, 2019
1 parent 1d26885 commit a51197b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/background/intentParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ this.intentParser = (function() {
text = text.trim();
text = text.replace(/\s\s+/g, " ");
text = text.toLowerCase();
text = text.replace(/[^a-z0-9 ']/gi, "");
text = text.replace(/[^a-z0-9 ']\B/gi, "");
let bestMatch;
let bestChars;
for (const name of INTENT_NAMES) {
Expand Down

0 comments on commit a51197b

Please sign in to comment.