diff --git a/.changeset/mean-starfishes-chew.md b/.changeset/mean-starfishes-chew.md new file mode 100644 index 0000000..3a09d95 --- /dev/null +++ b/.changeset/mean-starfishes-chew.md @@ -0,0 +1,5 @@ +--- +"@zazuko/shacl-test": patch +--- + +Make `--filter` case-insensitive diff --git a/run.sh b/run.sh index 7aa4d9c..10505e9 100755 --- a/run.sh +++ b/run.sh @@ -72,7 +72,7 @@ for file in $validCases; do relativePath=$(node -e "console.log(require('path').relative('$WORKING_DIR', '$file'))") # check if filter is set and skip if not matching - if [ -n "$filter" ] && ! echo "$file" | grep -q "$filter"; then + if [ -n "$filter" ] && ! echo "$file" | grep -iq "$filter"; then echo "ℹ️SKIP - $relativePath" continue fi @@ -101,7 +101,7 @@ for file in $invalidCases; do fi # check if pattern is set and skip if not matching - if [ -n "$filter" ] && ! echo "$file" | grep -q "$filter"; then + if [ -n "$filter" ] && ! echo "$file" | grep -iq "$filter"; then echo "ℹ️SKIP - $relativePath" continue fi