Skip to content

Commit 3f608ab

Browse files
fix(docs): guard against residual emoji shortcodes
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent b7c99e7 commit 3f608ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎scripts/sanitize-docs-emoji.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ find "$DOCS_DIR" -type f -name '*.mdx' -exec perl -0pi -e '
1616
s/:heavy_minus_sign:/➖/g;
1717
s/:warning:/⚠️/g;
1818
' {} +
19+
20+
if matches="$(find "$DOCS_DIR" -type f -name '*.mdx' -exec grep -HnE ':[a-z][a-z0-9_+-]*:' {} + || true)" && [[ -n "$matches" ]]; then
21+
printf '%s\n' "$matches" >&2
22+
exit 1
23+
fi

0 commit comments

Comments
 (0)