summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-01 20:54:44 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-01 20:54:44 +0300
commitb3edd8fd3977bf76d3179c7562bb18708a9e3bd2 (patch)
treefc8b45728c985e63439f87163d6970fd40c8cc39
parenta5ca02964ca988807d8b796a7994feeabe6d6ef9 (diff)
downloadfable-poc-b3edd8fd3977bf76d3179c7562bb18708a9e3bd2.tar.gz
Change: handle keywords as if they're always in lower case
-rwxr-xr-xftt-docgen2
1 files changed, 1 insertions, 1 deletions
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())