Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build/diff_rendered_hrefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
import hashlib

NOISY_PREFIXES = ("develop/ai/redisvl/", "operate/rc/changelog/")
HREF_RX = re.compile(r'href="[^"]*"')
# `hugo --minify` drops attribute quotes wherever the value has no whitespace
# or quote characters, which is nearly always for an href -- on a sampled page
# only 5 of 240 hrefs stayed quoted. A quoted-only pattern therefore
# fingerprints almost nothing and reports "0 diffs" even when links changed.
HREF_RX = re.compile(r'href="[^"]*"|href=\'[^\']*\'|href=[^\s"\'`=<>]+')


def fingerprint(public_dir, prefix_filter=None):
Expand Down
Loading