io-sgr/telegram-bot

Bad verifyToken regex pattern

xahon opened this issue · 1 comments

xahon commented

private static final Pattern TOKEN_PATTERN = Pattern.compile("^\\d+:\\w+$");

But my previously generated token has this structure 123456789:abcdefgh-aaaabbb... so regex must contain a hyphen in the alphanum part of token

PR #3