up nhentai to 4 digits

This commit is contained in:
Watn3y 2023-03-16 16:04:28 +01:00
parent 99019db54f
commit 857fb2a6e4
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ func Matcher(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
}
//nhentai
const nhentaiRegex string = "([ \\t\\n\\r]|^)\\d{2,}([ \\t\\n\\r]|$)"
const nhentaiRegex string = "([ \\t\\n\\r]|^)\\d{4,}([ \\t\\n\\r]|$)"
isNhentai, err := regexp.MatchString(nhentaiRegex, update.Message.Text)
if err != nil {
log.Panicf("Failed to compile regex for nhentai", err)