Skip to content

Commit 7359345

Browse files
author
zenus
committed
Fix zsh parsing in bitlesson delta validator
1 parent d7d7bc6 commit 7359345

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/bitlesson-validate-delta.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ EOF
280280

281281
BITLESSON_NOTES=$(echo "$BITLESSON_DELTA_BLOCK" | sed -nE 's/^[[:space:]-]*Notes:[[:space:]]*(.*)$/\1/p' | head -n1)
282282
BITLESSON_NOTES=$(echo "$BITLESSON_NOTES" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//')
283+
NOTES_PLACEHOLDER_REGEX='^(\[.*\]|<.*>)$'
283284

284-
if [[ -z "$BITLESSON_NOTES" ]] || [[ "$BITLESSON_NOTES" =~ ^(\[.*\]|<.*>)$ ]]; then
285+
if [[ -z "$BITLESSON_NOTES" ]] || [[ "$BITLESSON_NOTES" =~ $NOTES_PLACEHOLDER_REGEX ]]; then
285286
FALLBACK=$(cat <<'EOF'
286287
# BitLesson Delta Missing Notes
287288

0 commit comments

Comments
 (0)