Skip to content

Commit

Permalink
Stop regex from matching dashes in problem name
Browse files Browse the repository at this point in the history
This change should fix #290
  • Loading branch information
DO-Ui authored and agrawal-d committed Oct 7, 2022
1 parent f9efd24 commit eb6969c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilsPure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// They can still use VS Code type definitions.

export const words_in_text = function (text: string) {
const regex = /[\p{L}-]+|[0-9]+/gu;
const regex = /[\p{L}]+|[0-9]+/gu;
return text.match(regex);
};

0 comments on commit eb6969c

Please sign in to comment.