Skip to content

Commit

Permalink
Fix: Used wrong Regex-Group for filtering BDD-Keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
oeick committed Dec 22, 2017
1 parent a74ae04 commit 27fc067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/jump_to_keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def filter_given_when_then(self, line):
joined_kw_prefixes = "|".join(kw_prefixes)
regex = r'(^| {4}|\t)(?i)(%s) (.*)$' % joined_kw_prefixes
findings = re.search(regex, line)
return findings.group(2) if findings else line
return findings.group(3) if findings else line
else:
return line

Expand Down

0 comments on commit 27fc067

Please sign in to comment.