From 484e177589cf70302729e7e508be5b6752ecc50c Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Wed, 8 Oct 2025 15:22:41 +0200 Subject: [PATCH] make format excludes be able to be files --- format.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/format.sh b/format.sh index 30604f602..1009dec8b 100755 --- a/format.sh +++ b/format.sh @@ -24,12 +24,12 @@ include=("cockatrice/src" \ "oracle/src" \ "servatrice/src" \ "tests") -exclude=("libcockatrice_rng/libcockatrice/rng/sfmt" \ +exclude=("libcockatrice_rng/libcockatrice/rng/sfmt/" \ "libcockatrice_utility/libcockatrice/utility/peglib.h" \ -"oracle/src/lzma" \ -"oracle/src/qt-json" \ -"oracle/src/zip" \ -"servatrice/src/smtp") +"oracle/src/lzma/" \ +"oracle/src/qt-json/" \ +"oracle/src/zip/" \ +"servatrice/src/smtp/") exts=("cpp" "h" "proto") cf_cmd="clang-format" branch="origin/master" @@ -240,7 +240,7 @@ fi # filter excludes for path in "${exclude[@]}"; do for i in "${!names[@]}"; do - rx="^$path/" + rx="^$path" if [[ ${names[$i]} =~ $rx ]]; then unset "names[$i]" fi