diff options
author | worktycho <work.tycho@gmail.com> | 2015-09-17 14:32:01 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-09-17 14:32:01 +0200 |
commit | 2598f3158f0f47c5e082851032bf4a1a3b8d88e5 (patch) | |
tree | 4b984cbc73628fac3a3e0ed3aff55a65dfaf82f7 /src/CheckBasicStyle.lua | |
parent | Merge pull request #2457 from cuberite/log (diff) | |
parent | Added CircleCI for stylechecking. (diff) | |
download | cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.gz cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.bz2 cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.lz cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.xz cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.tar.zst cuberite-2598f3158f0f47c5e082851032bf4a1a3b8d88e5.zip |
Diffstat (limited to '')
-rwxr-xr-x | src/CheckBasicStyle.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 9521534a8..f9f8f6b4d 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -412,6 +412,12 @@ end -- Process the files in the list: for _, fnam in ipairs(ToProcess) do + + -- Remove the optional "./" prefix: + if (fnam:sub(1, 2) == "./") then + fnam = fnam:sub(3) + end + ProcessItem(fnam) end |