From 26ccce6dec3db85a7ec277051f5064a62986a62d Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 28 Oct 2021 15:29:14 +0800 Subject: [PATCH] update --- core/otto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/otto.go b/core/otto.go index 68f2673..0fae034 100644 --- a/core/otto.go +++ b/core/otto.go @@ -27,7 +27,7 @@ func init() { var OttoFuncs = map[string]func(string) string{ "machineId": func(_ string) string { data, _ := os.ReadFile("/var/lib/dbus/machine-id") - return regexp.MustCompile(`\d+`).FindString(string(data)) + return regexp.MustCompile(`\w+`).FindString(string(data)) }, }