From b3edd8fd3977bf76d3179c7562bb18708a9e3bd2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jun 2019 20:54:44 +0300 Subject: Change: handle keywords as if they're always in lower case --- ftt-docgen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftt-docgen') diff --git a/ftt-docgen b/ftt-docgen index 89ed110..f8891c5 100755 --- a/ftt-docgen +++ b/ftt-docgen @@ -29,7 +29,7 @@ def format_scenario_step(bind, line, prev_keyword): for b in bind: if real_keyword not in b: continue - m = re.match(b[real_keyword], line, re.I) + m = re.match(b[real_keyword.lower()], line, re.I) if m and m.end() == len(line): debug(' found binding: {!r}'.format(b)) n = len(m.groups()) -- cgit v1.2.1