mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
Start supporting numbers and strings
This commit is contained in:
14
src/regex.go
Normal file
14
src/regex.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
func makeRegex(str string) *regexp.Regexp {
|
||||
Compile, err := regexp.Compile("^(" + str + ")$")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return Compile
|
||||
}
|
||||
Reference in New Issue
Block a user