Skip to content
Snippets Groups Projects
CorrectPunctuation 185 B
{{ $correct := . }}
{{ $signs := slice ";" ":" "!" "?" }}
{{ range $signs }}
  {{ $correct = replace $correct (printf " %s" .) (printf " %s" .) }}
{{ end }}
{{ return $correct }}