Skip to content

Commit

Permalink
Merge pull request #6 from RadekDvorak/feature/improve-compatibility
Browse files Browse the repository at this point in the history
Relaxed device serial validation
  • Loading branch information
aripalo authored Sep 7, 2022
2 parents 9ba2e3b + d72e2fd commit b4f15df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oath.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// deviceSerialPattern ensures the given Yubikey device serial is either empty string or at least 8 digits
var deviceSerialPattern = regexp.MustCompile(`^$|^\d{8,}$`)
var deviceSerialPattern = regexp.MustCompile(`^$|^\d+$`)

// OathAccounts represents a the main functionality of Yubikey OATH accounts.
type OathAccounts struct {
Expand Down

0 comments on commit b4f15df

Please sign in to comment.