We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7d7bc6 commit 7359345Copy full SHA for 7359345
1 file changed
scripts/bitlesson-validate-delta.sh
@@ -280,8 +280,9 @@ EOF
280
281
BITLESSON_NOTES=$(echo "$BITLESSON_DELTA_BLOCK" | sed -nE 's/^[[:space:]-]*Notes:[[:space:]]*(.*)$/\1/p' | head -n1)
282
BITLESSON_NOTES=$(echo "$BITLESSON_NOTES" | sed 's/^[[:space:]]*//; s/[[:space:]]*$//')
283
+ NOTES_PLACEHOLDER_REGEX='^(\[.*\]|<.*>)$'
284
- if [[ -z "$BITLESSON_NOTES" ]] || [[ "$BITLESSON_NOTES" =~ ^(\[.*\]|<.*>)$ ]]; then
285
+ if [[ -z "$BITLESSON_NOTES" ]] || [[ "$BITLESSON_NOTES" =~ $NOTES_PLACEHOLDER_REGEX ]]; then
286
FALLBACK=$(cat <<'EOF'
287
# BitLesson Delta Missing Notes
288
0 commit comments