diff options
| author | ruki <[email protected]> | 2021-08-21 16:41:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-21 16:41:45 +0800 |
| commit | 38c33512003a92adfc8cba6f50409d9e78df3868 (patch) | |
| tree | ac5efd98a94ba22abff2cdaf4cc3b119723b09df /xmake/modules/private/action/require/impl/utils/requirekey.lua | |
| parent | 5e73fb8a86de1a6e10739d3c348d40607942c165 (diff) | |
improve requirekey
Diffstat (limited to 'xmake/modules/private/action/require/impl/utils/requirekey.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/utils/requirekey.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/utils/requirekey.lua b/xmake/modules/private/action/require/impl/utils/requirekey.lua index 230a53acb..d1792e50c 100644 --- a/xmake/modules/private/action/require/impl/utils/requirekey.lua +++ b/xmake/modules/private/action/require/impl/utils/requirekey.lua @@ -51,9 +51,9 @@ function main(requireinfo, opt) end if opt.hash then if key == "" then - key = "_" + key = "_" -- we need generate a fixed hash value end - return hash.uuid(key):gsub("%-", ""):lower() + return hash.uuid(key):split("-", {plain = true})[1]:lower() else return key end |
