fix: multiple capture matches

This commit is contained in:
iff 2024-11-19 03:18:54 +01:00
parent 1d26ca5c7e
commit 0dc24bc21d
2 changed files with 22 additions and 18 deletions

View file

@ -2,10 +2,11 @@ command = "cargo"
[[match_err]]
pattern = [
"did you mean"
"no such command"
]
suggest = [
'''
#[err_contains(did you mean)]
{{command[0]}} {{err::(?:did you mean `)(.*)(?:`)}} {{command[2:]}} '''
]