barcodes/validation/charsets.go

12 lines
279 B
Go
Raw Normal View History

2023-09-01 19:08:59 +01:00
package validation
import "regexp"
var (
ASCII = regexp.MustCompile(`^[\x00-\x7F]+$`)
ANY = regexp.MustCompile(`.`)
CODE39 = regexp.MustCompile(`^[0-9A-Z\-\.\ $%*+/]+$`)
NUMERAL = regexp.MustCompile(`^[0-9]+$`)
ISO88591 = regexp.MustCompile(`^[\x00-\xFF]+$`)
)