Skip to content

Commit

Permalink
refactor regex patterns in messageManager for improved accuracy
Browse files Browse the repository at this point in the history
Signed-off-by: Wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Dec 6, 2024
1 parent 88199ab commit 3e3bee7
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 3e3bee7

Please sign in to comment.