From c51bde4afa4a2d38100811bb48097f51923ca9c4 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 17 Mar 2015 09:07:26 +0000 Subject: [PATCH] twitter: recognize integers as amounts, not just floats --- tipbot/modules/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/twitter.py b/tipbot/modules/twitter.py index bd8450d..b8e09fb 100644 --- a/tipbot/modules/twitter.py +++ b/tipbot/modules/twitter.py @@ -27,7 +27,7 @@ from tipbot.utils import * from tipbot.command_manager import * from tipbot.network import * -amount_regexp="\+[0-9]*\.[0-9]*" +amount_regexp="\+[0-9]*(\.[0-9]*)?" username_regexp="@[a-zA-Z0-9_]+|[a-zA-Z]+:[a-zA-Z0-9]+" force_parse_self = False