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

@ -12,7 +12,7 @@ import (
func Nhentai(regex string, update tgbotapi.Update, bot *tgbotapi.BotAPI) {
re := regexp.MustCompile(regex)
getdigit := regexp.MustCompile("\\d{2,}")
getdigit := regexp.MustCompile("\\d{4,}")
match := re.FindStringSubmatch(update.Message.Text)
hentainumber := getdigit.FindStringSubmatch(match[0])