omg / community-bots

A bunch of bots for community servers.
MIT License
0 stars 4 forks source link

The regex for determining if a search is regex is incorrect #136

Open iminlikewithyou opened 10 months ago

iminlikewithyou commented 10 months ago

this will work on something like "lard lard /AP/ wang" and return results for "AP", from dictionary.ts:

/**
 * A regular expression used to determine if a search is regex or not.
 */
const regexTest = /(?:^| )\/(.*)\/(?: |$)/;