mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
build: support either stdlib or 3rd-party regexp (#1706)
This commit is contained in:
1 parent
049f5b2435
commit
3f4d91fc22
47 files changed
+102
-123
No files matched your search
@@ -0,0 +1,15 @@
|
||||
//go:build stdregex
|
||||
|
||||
package regexp
|
||||
|
||||
import (
|
||||
re "regexp"
|
||||
)
|
||||
|
||||
const Version = "stdlib"
|
||||
|
||||
type Regexp = re.Regexp
|
||||
|
||||
func MustCompile(str string) *re.Regexp {
|
||||
return re.MustCompile(str)
|
||||
}
|
||||
Reference in new issue
Block a user