diff options
| author | ruki <[email protected]> | 2024-02-17 22:40:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-17 22:40:28 +0800 |
| commit | 07064cf6fef8d0a1eb9e697f6c7190f51632aaf8 (patch) | |
| tree | b42f1cb63101a501521d997a98ec8b87de9716bc /xmake/plugins/format/main.lua | |
| parent | 0c539a2b863b1306057f4d96a95ca4a350a53946 (diff) | |
add path.unix
Diffstat (limited to 'xmake/plugins/format/main.lua')
| -rw-r--r-- | xmake/plugins/format/main.lua | 2 |
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 |
