AlteredCoder 5 lat temu
rodzic
commit
782f43c5a0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pkg/exprhelpers/exprlib.go

+ 1 - 1
pkg/exprhelpers/exprlib.go

@@ -61,7 +61,7 @@ func FileInit(fileFolder string, filename string) error {
 	fileType := "string"
 	fileType := "string"
 	scanner := bufio.NewScanner(file)
 	scanner := bufio.NewScanner(file)
 	scanner.Scan()
 	scanner.Scan()
-	if scanner.Text() == "#type: regex" { // if file contains, it should have this header
+	if scanner.Text() == "#type: regex" { // if file contains regexps, it should have this header
 		fileType = "regex"
 		fileType = "regex"
 	}
 	}
 	for scanner.Scan() {
 	for scanner.Scan() {