up nhentai to 4 digits
This commit is contained in:
parent
99019db54f
commit
857fb2a6e4
2 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue