Skip to content

Commit

Permalink
fix: regex handle dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
GangGreenTemperTatum committed Nov 7, 2024
1 parent 189bdf3 commit a9f0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate_robopages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
validate_file() {
local file="$1"
if [[ ! "$file" =~ ^[a-zA-Z0-9_\-./]+\.yml$ ]]; then
if [[ ! "$file" =~ ^([a-zA-Z0-9_\-]+/)*[a-zA-Z0-9_\-]+\.yml$ ]]; then
echo "Invalid file path characters: $file"
return 1
fi
Expand Down

0 comments on commit a9f0f3d

Please sign in to comment.