Skip to content

Commit

Permalink
fix issue #552 regex
Browse files Browse the repository at this point in the history
updated to accept numbers in traineddata files.
  • Loading branch information
KaipaUday authored Jul 5, 2024
1 parent c835945 commit 2228d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytesseract/pytesseract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2228d68

Please sign in to comment.