Fix i18n language code validation to include -
This commit is contained in:
parent
3847c67087
commit
00275df910
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ type pagination struct {
|
|||
|
||||
var (
|
||||
reUUID = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
|
||||
reLangCode = regexp.MustCompile("[^a-zA-Z_0-9]")
|
||||
reLangCode = regexp.MustCompile("[^a-zA-Z_0-9\\-]")
|
||||
)
|
||||
|
||||
// registerHandlers registers HTTP handlers.
|
||||
|
|
Loading…
Add table
Reference in a new issue