Compare commits
No commits in common. "main" and "v1.0.0" have entirely different histories.
@ -65,8 +65,6 @@ type exportTemplateData struct {
|
||||
VarNames []string
|
||||
}
|
||||
|
||||
var isAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9]*$`)
|
||||
|
||||
func generateFile(name string) string {
|
||||
fmt.Println("generating file for dictionary " + name)
|
||||
|
||||
@ -84,7 +82,7 @@ func generateFile(name string) string {
|
||||
scanner := bufio.NewScanner(file)
|
||||
for scanner.Scan() {
|
||||
w := strings.TrimSpace(scanner.Text())
|
||||
if isAlphaNumeric.MatchString(w) {
|
||||
if regexp.MustCompile(`^[a-zA-Z0-9]*$`).MatchString(w) {
|
||||
words = append(words, w)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user