diff options
| author | 2018-07-14 09:06:52 +0100 | |
|---|---|---|
| committer | 2018-07-14 09:06:52 +0100 | |
| commit | 7d9f3dc6e4b328552c5bbe358018bea41b9a1928 (patch) | |
| tree | 95d98f74ff457281499dd17b5b761b282e7ba529 /modules/translate.py | |
| parent | Implemented delimited "event chains" and changed pong.py to use it (diff) | |
| signature | ||
Allow translate source/target languages to be more than 2 chars
Diffstat (limited to 'modules/translate.py')
| -rw-r--r-- | modules/translate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translate.py b/modules/translate.py index 1144d516..c1345500 100644 --- a/modules/translate.py +++ b/modules/translate.py @@ -3,7 +3,7 @@ import Utils URL_TRANSLATE = "http://translate.googleapis.com/translate_a/single" URL_LANGUAGES = "https://cloud.google.com/translate/docs/languages" -REGEX_LANGUAGES = re.compile("(\w{2})?:(\w{2})? ") +REGEX_LANGUAGES = re.compile("(\w+)?:(\w+)? ") class Module(object): def __init__(self, bot): |
