mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
cleanup(services): xstrings v1.5.0 the CAMEL & PASCAL workarounds
Refs: https://codeberg.org/forgejo/forgejo/pulls/4050
This commit is contained in:
parent
884eb07793
commit
0d69cda8bd
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ type expansion struct {
|
||||||
var defaultTransformers = []transformer{
|
var defaultTransformers = []transformer{
|
||||||
{Name: "SNAKE", Transform: xstrings.ToSnakeCase},
|
{Name: "SNAKE", Transform: xstrings.ToSnakeCase},
|
||||||
{Name: "KEBAB", Transform: xstrings.ToKebabCase},
|
{Name: "KEBAB", Transform: xstrings.ToKebabCase},
|
||||||
|
// as of xstrings v1.5.0 the CAMEL & PASCAL workarounds are no longer necessary
|
||||||
|
// and can be removed https://codeberg.org/forgejo/forgejo/pulls/4050
|
||||||
{Name: "CAMEL", Transform: func(str string) string {
|
{Name: "CAMEL", Transform: func(str string) string {
|
||||||
return xstrings.FirstRuneToLower(xstrings.ToCamelCase(str))
|
return xstrings.FirstRuneToLower(xstrings.ToCamelCase(str))
|
||||||
}},
|
}},
|
||||||
|
|
Loading…
Reference in a new issue