Update custom url schemes error message to reflect what we actually support (#9061)
Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
8a02121767
Коммит
28449dd95a
@@ -2418,7 +2418,7 @@ func (mes *MessageExportSettings) isValid(fs FileSettings) *AppError {
|
||||
|
||||
func (ds *DisplaySettings) isValid() *AppError {
|
||||
if len(*ds.CustomUrlSchemes) != 0 {
|
||||
validProtocolPattern := regexp.MustCompile(`(?i)^\s*[a-z][a-z0-9+.-]*\s*$`)
|
||||
validProtocolPattern := regexp.MustCompile(`(?i)^\s*[a-z][a-z0-9-]*\s*$`)
|
||||
|
||||
for _, scheme := range *ds.CustomUrlSchemes {
|
||||
if !validProtocolPattern.MatchString(scheme) {
|
||||
|
||||
Ссылка в новой задаче
Block a user