Skip to content

Commit

Permalink
fix: added check for whitespace before x[num] (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
densellp authored Nov 1, 2023
1 parent 02cb25e commit 2b537b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/recognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const tagRegex = /#(\S+)/g;
const generalEmojiRegex = /:([a-z-_']+):/g;
const gratitudeEmojiRegex = new RegExp(config.recognizeEmoji, "g");
const multiplierRegex = new RegExp(
`${config.recognizeEmoji}\\sx([0-9]+)|x([0-9]+)\\s${config.recognizeEmoji}`
`${config.recognizeEmoji}\\s*x([0-9]+)|x([0-9]+)\\s${config.recognizeEmoji}`
);

// TODO Can we add a 'count' field to the recognition?
Expand Down

0 comments on commit 2b537b5

Please sign in to comment.