summaryrefslogtreecommitdiff
path: root/xmake/plugins/format/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-17 22:40:28 +0800
committerruki <[email protected]>2024-02-17 22:40:28 +0800
commit07064cf6fef8d0a1eb9e697f6c7190f51632aaf8 (patch)
treeb42f1cb63101a501521d997a98ec8b87de9716bc /xmake/plugins/format/main.lua
parent0c539a2b863b1306057f4d96a95ca4a350a53946 (diff)
add path.unix
Diffstat (limited to 'xmake/plugins/format/main.lua')
-rw-r--r--xmake/plugins/format/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/format/main.lua b/xmake/plugins/format/main.lua
index 85c5e00f9..57c63dda7 100644
--- a/xmake/plugins/format/main.lua
+++ b/xmake/plugins/format/main.lua
@@ -68,7 +68,7 @@ function _get_file_patterns(sourcefiles)
end
-- translate path and remove some repeat separators
- pattern = path.translate(pattern:gsub("|.*$", ""))
+ pattern = path.translate((pattern:gsub("|.*$", "")))
-- remove "./" or '.\\' prefix
if pattern:sub(1, 2):find('%.[/\\]') then