Skip to content

Commit

Permalink
Merge pull request #58 from Wiibleyde/develop
Browse files Browse the repository at this point in the history
refactor regex patterns in messageManager for improved accuracy
  • Loading branch information
Wiibleyde authored Dec 6, 2024
2 parents 772e2c9 + 3e3bee7 commit e316473
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/utils/messageManager.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
const quoiRegexs = [
// Quoi
/quoi/,
/quoi\?/,
/quoi\ ?/,
/quoi\ ?\?/,
/quoi\ ?\?/,

/quoi$/,
/quoi\?$/,
/quoi\ ?$/,
/quoi\ ?\?$/,
/quoi\ ?\?$/,

// Koa
/koa/,
/koa\?/,
/koa\ ?/,
/koa\ ?\?/,
/koa\ ?\?/,
/koa$/,
/koa\?$/,
/koa\ ?$/,
/koa\ ?\?$/,
/koa\ ?\?$/
]

export const possibleResponses = [
Expand Down

0 comments on commit e316473

Please sign in to comment.