Skip to content
4 changes: 2 additions & 2 deletions cmd/browsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ type Int64Flag struct {
Value int64
}

// Regular expression to validate CUID2 identifiers (24 lowercase alphanumeric characters).
var cuidRegex = regexp.MustCompile(`^[a-z0-9]{24}$`)
// Regular expression to validate CUID2 identifiers (starts with a letter, 24 lowercase alphanumeric characters).
var cuidRegex = regexp.MustCompile(`^[a-z][a-z0-9]{23}$`)

// getAvailableViewports returns the list of supported viewport configurations.
func getAvailableViewports() []string {
Expand Down
Loading
Loading