Skip to content

Commit

Permalink
Merge pull request #357 from smaznet/patch-1
Browse files Browse the repository at this point in the history
this should fix #356
  • Loading branch information
kirsle authored Oct 2, 2021
2 parents 79fecea + 6d3f470 commit 32acde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ class Brain {
// So then we switch it back down here. Also, we don't just use \w+ because
// that matches digits, and similarly [A-Za-z] doesn't work with Unicode,
// so this regexp excludes spaces and digits instead of including letters.
regexp = regexp.replace(/\\w/, "[^\\s\\d]");
regexp = regexp.replace(/\\w/g, "[^\\s\\d]");

// Filter in arrays.
giveup = 0;
Expand Down

0 comments on commit 32acde1

Please sign in to comment.