mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +00:00
parent
b7e5d3860c
commit
f8b6c062e8
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
validation "github.com/go-ozzo/ozzo-validation/v4"
|
validation "github.com/go-ozzo/ozzo-validation/v4"
|
||||||
|
@ -21,7 +22,7 @@ type Subreddit struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sr *Subreddit) NormalizedName() string {
|
func (sr *Subreddit) NormalizedName() string {
|
||||||
return sr.Name
|
return strings.ToLower(sr.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
func validPrefix(value interface{}) error {
|
func validPrefix(value interface{}) error {
|
||||||
|
|
Loading…
Reference in a new issue