From 0c86f98c0640a09c03d10315f9fc6954f52a58ee Mon Sep 17 00:00:00 2001 From: iff Date: Sun, 29 Dec 2024 20:45:41 +0100 Subject: [PATCH] rules: git internal suggestion --- rules/git.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/git.toml b/rules/git.toml index 1b9cd73..4cf6f3e 100644 --- a/rules/git.toml +++ b/rules/git.toml @@ -6,6 +6,10 @@ pattern = [ ] suggest = [ ''' +#[err_contains(the most similar command is)] +{{command[0]}} {{err::(?:the most similar command is )(\S+)}} ''', +''' +#[!err_contains(the most similar command is)] {{command[0]}} {{typo[1]( add, am,