Skip to content

Commit

Permalink
Update lib/utils/hasPrefix.js
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
jeddy3 and ybiquitous committed Jun 30, 2023
1 parent df0e7e4 commit 6a918a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/hasPrefix.js
Expand Up @@ -2,7 +2,7 @@

const { prefixes } = require('../reference/prefixes');

const HAS_PREFIX_REGEX = new RegExp(`(?:${[...prefixes.values()].join('|')})`, 'i');
const HAS_PREFIX_REGEX = new RegExp(`(?:${[...prefixes].join('|')})`, 'i');

/**
* Check if a string contains any prefix
Expand Down

0 comments on commit 6a918a6

Please sign in to comment.