Merge pull request 'fix: fix: parse-deps.sh inline regex matches every line — awk /pattern/i flag is invalid (#600)' (#601) from fix/issue-600 into main
This commit is contained in:
commit
f6fb79d94b
1 changed files with 2 additions and 1 deletions
|
|
@ -25,8 +25,9 @@ BODY=$(cat)
|
||||||
|
|
||||||
# Also check inline deps on same line as keyword (skip fenced code blocks)
|
# Also check inline deps on same line as keyword (skip fenced code blocks)
|
||||||
echo "$BODY" | awk '
|
echo "$BODY" | awk '
|
||||||
|
BEGIN { IGNORECASE=1 }
|
||||||
/^```/ { incode = !incode; next }
|
/^```/ { incode = !incode; next }
|
||||||
incode { next }
|
incode { next }
|
||||||
/blocked by|depends on/i { print }
|
/blocked by|depends on/ { print }
|
||||||
' | grep -oP '#\K[0-9]+' || true
|
' | grep -oP '#\K[0-9]+' || true
|
||||||
} | sort -un
|
} | sort -un
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue