From 11cd11394f6dcc88bf80962642932ada2d1e9efb Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Tue, 27 Aug 2019 23:53:08 +0200 Subject: [PATCH] Possibly a fix for issue #441 --- lark/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lark/utils.py b/lark/utils.py index 5eb2333..9513b8b 100644 --- a/lark/utils.py +++ b/lark/utils.py @@ -172,7 +172,7 @@ import sre_parse import sre_constants def get_regexp_width(regexp): try: - return sre_parse.parse(regexp).getwidth() + return [int(x) for x in sre_parse.parse(regexp).getwidth()] except sre_constants.error: raise ValueError(regexp)