content.scan
Scan the whole document for a mask and check every hit.
Science officer: Fascinating claim. Source?
needs sources What to pass
Quick reference
| Written as | Fails with | Applies to |
|---|---|---|
content. | unknown-entity error | document |
Examples
content. scan
Scan document prose for every occurrence of a mask and report captured values absent from a contract-relative |in: source, once at first occurrence.
Every scanned name is on the roster
<!-- mdv: fragment person = (?:Captain|Ensign)\s+[A-Z][A-Za-z'-]+ -->
<!-- mdv: document content.scan="<person|in: ./roster.txt>" -->Captain Reyes
Ensign OkaforCaptain Reyes ordered the relay check.
Ensign Okafor logged the result.✓ passes
A name missing from the roster is reported once
<!-- mdv: fragment person = (?:Captain|Ensign)\s+[A-Z][A-Za-z'-]+ -->
<!-- mdv: document content.scan="<person|in: ./roster.txt>" -->Captain Reyes
Ensign OkaforCaptain Reyes ordered the relay check.
Ensign Okafro logged the result.
Ensign Okafro signed off the shift.✗ unknown-entity error · line 3