mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 17:38:32 +02:00
Prevent greedy matching in "we run" by using regular expression lookahead
This commit is contained in:
parent
7c16f3d094
commit
51f8ef54bb
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ all_input = '("(?P<all_input>[^"]*)")'
|
||||||
|
|
||||||
@when(parse('we run "jrnl {command}" and {input_method}\n{all_input}'))
|
@when(parse('we run "jrnl {command}" and {input_method}\n{all_input}'))
|
||||||
@when(re(f'we run "jrnl ?{command}" and {input_method} {all_input}'))
|
@when(re(f'we run "jrnl ?{command}" and {input_method} {all_input}'))
|
||||||
@when(parse('we run "jrnl {command}"'))
|
@when(re(f'we run "jrnl {command}"(?! and)'))
|
||||||
@when('we run "jrnl"')
|
@when('we run "jrnl"')
|
||||||
def we_run_jrnl(capsys, keyring, request, command, input_method, all_input):
|
def we_run_jrnl(capsys, keyring, request, command, input_method, all_input):
|
||||||
from keyring import set_keyring
|
from keyring import set_keyring
|
||||||
|
|
Loading…
Add table
Reference in a new issue