This commit is contained in:
cdle
2021-10-02 10:59:19 +08:00
parent b6562aef8c
commit 9f74bbc4ff
+1 -1
View File
@@ -30,7 +30,7 @@ func init() {
scanner := bufio.NewScanner(file)
for scanner.Scan() {
line := scanner.Text()
if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+.*)$`).FindStringSubmatch(line); len(v) > 0 {
if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+.*)`).FindStringSubmatch(line); len(v) > 0 {
b := Bucket(v[1])
if b.Get(v[2]) != v[3] {
b.Set(v[2], v[3])