This commit is contained in:
brent s. 2021-12-18 04:41:09 -05:00
parent 8f582d37f1
commit 0e194a07f4
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -1,11 +1,11 @@
package envs package envs


import ( import (
`regexp` "regexp"
) )


// Compiled regex patterns. // Compiled regex patterns.
var ( var (
reMaybeInt *regexp.Regexp = regexp.MustCompilePOSIX(`^(?P<sign>\+|-)[0-9]+$`) reMaybeInt *regexp.Regexp = regexp.MustCompile(`^(?P<sign>\+|-)[0-9]+$`)
reMaybeFloat *regexp.Regexp = regexp.MustCompilePOSIX(`(?P<sign>\+|-)?[0-9]+\.[0-9]+$`) reMaybeFloat *regexp.Regexp = regexp.MustCompile(`(?P<sign>\+|-)?[0-9]+\.[0-9]+$`)
) )