1.4.5.2
This commit is contained in:
15
EdgeAPI/internal/utils/regexputils/expr.go
Normal file
15
EdgeAPI/internal/utils/regexputils/expr.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package regexputils
|
||||
|
||||
import "regexp"
|
||||
|
||||
var (
|
||||
YYYYMMDDHH = regexp.MustCompile(`^\d{10}$`)
|
||||
YYYYMMDD = regexp.MustCompile(`^\d{8}$`)
|
||||
YYYYMM = regexp.MustCompile(`^\d{6}$`)
|
||||
)
|
||||
|
||||
var (
|
||||
HTTPProtocol = regexp.MustCompile("^(?i)(http|https)://")
|
||||
)
|
||||
Reference in New Issue
Block a user