Skip to content

Commit 49706ff

Browse files
committed
fic a workflow
1 parent eb43ef7 commit 49706ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
BITWISE_VIOLATIONS=$(find src/ -name "*.c" -o -name "*.h" | while read file; do
138138
# Remove all types of C comments, then check for violations
139139
# This handles both // and /* */ comments properly
140-
perl -pe 's|//.*||g; s|/\*.*?\*/||gs' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
140+
perl -0pe 's|/\*.*?\*/||gs; s|//.*||gm' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
141141
done)
142142
143143
BITWISE_COUNT=$(echo "$BITWISE_VIOLATIONS" | grep -c . 2>/dev/null || true)

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
BITWISE_VIOLATIONS=$(find src/ -name "*.c" -o -name "*.h" | while read file; do
122122
# Remove all types of C comments, then check for violations
123123
# This handles both // and /* */ comments properly
124-
perl -pe 's|//.*||g; s|/\*.*?\*/||gs' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
124+
perl -0pe 's|/\*.*?\*/||gs; s|//.*||gm' "$file" | grep -n -E '(\&[^&]|\|[^|]|\^|<<|>>|~)' | grep -v '&&' | grep -v '||' | sed "s|^|$file:|" || true
125125
done)
126126
127127
BITWISE_COUNT=$(echo "$BITWISE_VIOLATIONS" | grep -c . 2>/dev/null || true)

0 commit comments

Comments
 (0)