Skip to content

Commit

Permalink
chore: and thats why you use grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Jun 14, 2024
1 parent b9a7474 commit e104b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/workers/WorkerCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class WorkerCache {
}

case WorkerType.Word: {
const originalSplit = content.toLowerCase().split(/\s+/);
const originalSplit = content.toLowerCase().split(/(\s+)/);

for (const [word, possibleMembers] of guildData.entries()) {
const wordIndex = originalSplit.indexOf(word.toLowerCase());
Expand Down

0 comments on commit e104b74

Please sign in to comment.