fix
This commit is contained in:
parent
4af1269dd4
commit
2901cfaa2f
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ func FileInit(fileFolder string, filename string, fileType string) error {
|
|||
switch fileType {
|
||||
case "regex":
|
||||
dataFileRegex[filename] = append(dataFileRegex[filename], regexp.MustCompile(scanner.Text()))
|
||||
case "regexp":
|
||||
dataFileRegex[filename] = append(dataFileRegex[filename], regexp.MustCompile(scanner.Text()))
|
||||
case "string":
|
||||
dataFile[filename] = append(dataFile[filename], scanner.Text())
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue