Commit 6c95d9a6 authored by Ronny Bangsund's avatar Ronny Bangsund

Better string cleaning.

parent 73b994d8
package main
import (
"strings"
"github.com/mgutz/str"
"time"
)
func sane(s string) string {
return strings.TrimSpace(s)
return str.Clean(s)
}
func validLanguage(s string) bool {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment