feat: range substitution for typos

This commit is contained in:
iff 2023-08-11 00:41:16 +02:00
parent b991214729
commit 2a5fa8a950
4 changed files with 102 additions and 53 deletions

View file

@ -11,6 +11,6 @@ suggest = [
pattern = [ "no such file or directory" ]
suggest = [
'''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[-1](file)}} '''
{{command[0}} {{opt::(?:\s)-[\w]+}} {{typo[1:](file)}} '''
]