diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-13 17:44:50 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-13 17:44:50 +0200 |
commit | 841c766c942982f021aa97c1827faaa23715dee7 (patch) | |
tree | 9c4ea96ee392c391c67f425fa68dd5e37df71f65 /subplot | |
parent | a959c4aa500d3c72dfa884319aa5a6e36fe47cab (diff) | |
download | jt2-841c766c942982f021aa97c1827faaa23715dee7.tar.gz |
fix(subplot/jt.yaml): declare types for regex captures
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'subplot')
-rw-r--r-- | subplot/jt.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subplot/jt.yaml b/subplot/jt.yaml index 0c50413..a121ddf 100644 --- a/subplot/jt.yaml +++ b/subplot/jt.yaml @@ -11,6 +11,10 @@ function: create_script - when: I invoke jt init (?P<dirname>\S+) (?P<journalname>\S+) "(?P<title>.*)" + types: + dirname: word + journalname: word + title: text regex: true impl: python: @@ -48,6 +52,8 @@ function: edit_draft - then: output contains "(?P<pattern>.*)" + types: + pattern: text regex: true impl: python: |