diff --git a/pytesseract/pytesseract.py b/pytesseract/pytesseract.py index cf48757..dc8a9bb 100644 --- a/pytesseract/pytesseract.py +++ b/pytesseract/pytesseract.py @@ -48,7 +48,7 @@ LOGGER = logging.getLogger('pytesseract') DEFAULT_ENCODING = 'utf-8' -LANG_PATTERN = re.compile('^[a-z_]+$') +LANG_PATTERN = re.compile('^[a-z0-9_]+$') RGB_MODE = 'RGB' SUPPORTED_FORMATS = { 'JPEG',