Skip to content

Commit 4922e14

Browse files
committed
resolved the issue
1 parent 9c34435 commit 4922e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ jobs:
7171
;;
7272
esac
7373
74-
# Check directory structure - must contain a valid category
74+
# Check directory structure
7575
if [[ "$file" =~ \.(c|cpp|java|py|js|ts|go|rs|kt|swift|php|rb|cs|dart|scala)$ ]]; then
76-
if [[ ! "$dir" =~ (algorithms|data_structures|dynamic_programming|projects) ]]; then
76+
if [[ ! "$dir" =~ (algorithms|data_structures|dynamic_programming|projects)/ ]]; then
7777
invalid_files+=("$file: Should be in algorithms/, data_structures/, dynamic_programming/, or projects/ subdirectory")
7878
fi
7979
fi

0 commit comments

Comments
 (0)