From f087213f0a9f158c2a474e63d5a4f855357ff900 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 2 Dec 2022 15:26:48 +0100 Subject: [PATCH] repochecker/grammalecte: Allow * as all paragraphs --- repochecker/grammalecte/grammalecte.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repochecker/grammalecte/grammalecte.go b/repochecker/grammalecte/grammalecte.go index c1b01883..408c3d49 100644 --- a/repochecker/grammalecte/grammalecte.go +++ b/repochecker/grammalecte/grammalecte.go @@ -186,7 +186,7 @@ func grammalecte(name string, text string, paragraph int, exceptions *sync.Check } for _, gerror := range data.GrammarErrors { - if (paragraph == 0 && exceptions.HasException(fmt.Sprintf(":%d:%s", data.Paragraph, gerror.RuleId))) || (paragraph < 0 && exceptions.HasException(fmt.Sprintf(":%s", gerror.RuleId))) || (paragraph > 0 && exceptions.HasException(fmt.Sprintf(":%d:%s", paragraph, gerror.RuleId))) { + if exceptions.HasException(fmt.Sprintf(":*:%s", gerror.RuleId)) || (paragraph == 0 && exceptions.HasException(fmt.Sprintf(":%d:%s", data.Paragraph, gerror.RuleId))) || (paragraph < 0 && exceptions.HasException(fmt.Sprintf(":%s", gerror.RuleId))) || (paragraph > 0 && exceptions.HasException(fmt.Sprintf(":%d:%s", paragraph, gerror.RuleId))) { continue }