aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/translate.py2
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):