Compare commits
1 Commits
Beta_1.0.0
...
master
Author | SHA1 | Date |
---|---|---|
rick.chan | a33724a664 |
|
@ -50,8 +50,8 @@ func fileClose(file *os.File) {
|
|||
}
|
||||
|
||||
func insertSpace2Line(line string) string {
|
||||
reg1 := regexp.MustCompile("([A-Za-z0-9?/,*])([\u4e00-\u9fa5])")
|
||||
reg2 := regexp.MustCompile("([\u4e00-\u9fa5])([A-Za-z0-9?/,*])")
|
||||
reg1 := regexp.MustCompile("([A-Za-z0-9?)/,*])([\u4e00-\u9fa5])")
|
||||
reg2 := regexp.MustCompile("([\u4e00-\u9fa5])([A-Za-z0-9?(/,*])")
|
||||
line = reg2.ReplaceAllString(reg1.ReplaceAllString(line, "$1 $2"), "$1 $2")
|
||||
return line
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue