diff options
| author | OpportunityLiu <[email protected]> | 2019-07-18 18:18:58 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-19 11:48:33 +0800 |
| commit | a8cc8e8989fd52574088200c5d6bbc3a4582d911 (patch) | |
| tree | 1f437f64fddee3bda885b656f15ae0909f0cdf5e /xmake/plugins | |
| parent | 8ef441ef5507b58e024c55e3f1d6b80284bef4d6 (diff) | |
fix
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index ad05c4788..b012ffff0 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -38,18 +38,19 @@ function _escape(str) end local map = - { ["%"] = "%25" -- Referencing metadata - ,["$"] = "%24" -- Referencing properties - ,["@"] = "%40" -- Referencing item lists - ,["'"] = "%27" -- Conditions and other expressions - ,[";"] = "%3B" -- List separator - ,["?"] = "%3F" -- Wildcard character for file names in Include and Exclude attributes - ,["*"] = "%2A" -- Wildcard character for use in file names in Include and Exclude attributes - -- html entities - ,["\""] = """ - ,["<"] = "<" - ,[">"] = ">" - ,["&"] = "&" + { + ["%"] = "%25" -- Referencing metadata + , ["$"] = "%24" -- Referencing properties + , ["@"] = "%40" -- Referencing item lists + , ["'"] = "%27" -- Conditions and other expressions + , [";"] = "%3B" -- List separator + , ["?"] = "%3F" -- Wildcard character for file names in Include and Exclude attributes + , ["*"] = "%2A" -- Wildcard character for use in file names in Include and Exclude attributes + -- html entities + , ["\""] = """ + , ["<"] = "<" + , [">"] = ">" + , ["&"] = "&" } return (string.gsub(str, "[%%%$@';%?%*\"<>&]", function (c) return assert(map[c]) end)) |
