isAttachmentProjectionText function

bool isAttachmentProjectionText(
  1. String text
)

Implementation

bool isAttachmentProjectionText(String text) {
  final normalized = text.trim();
  if (!normalized.startsWith('[') || !normalized.endsWith(')')) return false;
  return normalized.contains('](file://') ||
      normalized.startsWith('[@image](') ||
      normalized.startsWith('[@codex-clipboard-');
}