repochecker/grammalecte: Fix out of bound array
This commit is contained in:
parent
98939e9d61
commit
50b3e4c739
|
@ -57,7 +57,7 @@ func GrammalecteCheckMDText(str string, exceptions *sync.CheckExceptions) (errs
|
|||
for k := range *exceptions {
|
||||
tmp := strings.SplitN(k, ":", 3)
|
||||
if len(tmp) == 3 && tmp[1] == "quote" {
|
||||
str = strings.Replace(str, tmp[3], "une citation a été remplacée ici", -1)
|
||||
str = strings.Replace(str, tmp[2], "une citation a été remplacée ici", -1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue