Add placeholder

This commit is contained in:
Ryan 2023-03-11 19:08:41 +00:00 committed by GitHub
parent b24808927a
commit a844ddf2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,7 +513,7 @@ func (p *panelBody) verifyNamingScheme() bool {
} }
// Validate placeholders used // Validate placeholders used
validPlaceholders := []string{"id", "username", "nickname"} validPlaceholders := []string{"id", "username", "nickname", "id_padded"}
for _, match := range placeholderPattern.FindAllStringSubmatch(*p.NamingScheme, -1) { for _, match := range placeholderPattern.FindAllStringSubmatch(*p.NamingScheme, -1) {
if len(match) < 2 { // Infallible if len(match) < 2 { // Infallible
return false return false