Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/swimpeek/swimpeek.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

var logger *log.Logger = config.GetLogger("swimpeek")
var version string = "0.1"
var version string = "0.2"

func printUsage() {
fmt.Println("Usage: swimpeek <command> [options]")
Expand Down
2 changes: 1 addition & 1 deletion internal/config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func initPrompts(cfg *Config) error {
Placeholder("us1").
Description("To find the region, visit any Swimlane tenant and look at the domain name.").
Validate(func(s string) error {
if !regexp.MustCompile(`^[a-z]{2}\d$`).MatchString(s) {
if !regexp.MustCompile(`(?i)^[a-z0-9]{3}$`).MatchString(s) {
return errors.New("please provide a valid Swimlane region (e.g., us1, de1)")
}
return nil
Expand Down