diff options
| author | OpportunityLiu <[email protected]> | 2019-06-19 11:30:06 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-19 11:30:06 +0800 |
| commit | d5ad005f6c8a79af48f4c73f0ec87775ab746d0d (patch) | |
| tree | eefdd667a032d9732481b61cff3b4d860853ca8f /xmake/core/base/string.lua | |
| parent | 5c06711d12932c02ab7b64a25135902fabf00675 (diff) | |
improve dump
Diffstat (limited to 'xmake/core/base/string.lua')
| -rw-r--r-- | xmake/core/base/string.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/string.lua b/xmake/core/base/string.lua index 558344d7f..5242a0a1e 100644 --- a/xmake/core/base/string.lua +++ b/xmake/core/base/string.lua @@ -28,11 +28,11 @@ string._dump = string._dump or string.dump function string._makestr(object, deflate, serialize, level) if type(object) == "string" then return serialize and string.format("%q", object) or object - elseif type(object) == "boolean" or type(object) == "number" then + elseif type(object) == "boolean" or type(object) == "number" then return tostring(object) elseif not serialize and type(object) == "table" and (getmetatable(object) or {}).__tostring then return tostring(object) - elseif type(object) == "table" then + elseif type(object) == "table" then -- make head local s = "" |
