pub const MARKER_REGEX_V2: &str = r"^<!-- fallow-fingerprint:v2: ((?:[a-z]+:)?[0-9a-f]{16}) -->\s*$";Expand description
Canonical v2 marker-regex literal. Mirrored by
MARKER_PREFIX_V2 on the
render side; if you change one, change the other and refresh both
snapshots. NO (?m) baked into the pattern; consumers pass
MARKER_REGEX_FLAGS_V2 as the second arg to their regex engine so
the ^ / $ anchors match at line boundaries inside a multi-line
comment body. Pairing pattern + flags lets the wire stay compatible
with both Rust’s regex crate (via RegexBuilder::multi_line(true))
and JavaScript RegExp (new RegExp(pat, "m")).