Skip to content

Commit 71bc194

Browse files
vaindclaude
andcommitted
fix: Use [:space:] character class for spaces in regex
Fix the regex pattern to properly match spaces in dependency names by using the [:space:] POSIX character class instead of a literal space in the regex pattern. This fixes CI failures for test cases that include spaces in the dependency name like "Workflow args test script". 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3841d24 commit 71bc194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Validate dependency name
7979
run: |
8080
# Validate that inputs.name contains only safe characters
81-
if [[ ! "${{ inputs.name }}" =~ ^[a-zA-Z0-9_\-\./@ ]+$ ]]; then
81+
if [[ ! "${{ inputs.name }}" =~ ^[a-zA-Z0-9_\-\./@[:space:]]+$ ]]; then
8282
echo "::error::Invalid dependency name: '${{ inputs.name }}'. Only alphanumeric characters, spaces, and _-./@ are allowed."
8383
exit 1
8484
fi

0 commit comments

Comments
 (0)