allow period for the alias #1

Merged
lash merged 3 commits from alias-period into master 2025-01-21 14:47:36 +01:00
Showing only changes of commit 3e859d3469 - Show all commits

View File

@ -5,7 +5,7 @@ import (
)
const (
aliasRegex = `^[a-zA-Z0-9.]+$`
aliasRegex = `^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$`
Outdated
Review

Actually this should be previous regex then followed by 1+ dot-prefixed alphanumerics something like ^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$

Actually this should be previous regex then followed by 1+ dot-prefixed alphanumerics something like `^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$`
)
// IsValidAlias checks if the alias is a valid alias format