18 lines
305 B
Go
18 lines
305 B
Go
package fixers
|
|||
|
|
|
||
|
|
import "strings"
|
||
|
|
|
||
|
|
func opennetFixer(title, body string) (string, string) {
|
||
|
|
newBody := &strings.Builder{}
|
||
|
|
|
||
|
|
for line := range strings.Lines(body) {
|
||
|
|
if strings.HasPrefix(line, "Источник") {
|
||
|
|
continue
|
||
|
|
}
|
||
|
|
|
||
|
|
_, _ = newBody.WriteString(line)
|
||
|
|
}
|
||
|
|
|
||
|
|
return title, newBody.String()
|
||
|
|
}
|