all repos — honk @ c1b667916623d437082ffe0eae2ba0e70a02670d

my fork of honk

allow . to match all summaries
Ted Unangst tedu@tedunangst.com
Tue, 24 Jan 2023 19:08:26 -0500
commit

c1b667916623d437082ffe0eae2ba0e70a02670d

parent

046641fedd0e4eb6112cf0b59d1ec34530bc5d5c

3 files changed, 12 insertions(+), 2 deletions(-)

jump to
M docs/changelog.txtdocs/changelog.txt

@@ -2,6 +2,8 @@ changelog

=== next ++ Filter to match anything with summary/warning. + + Start collecting quties. + Fix http signatures for GET requests.
M docs/hfcs.1docs/hfcs.1

@@ -51,6 +51,7 @@ fields as well.

.It Ar text Regular expression match against the post .Fa content . +The special value of "." will match any post with a summary only. .It Ar is announce Is announced (shared). .It Ar announce of
M hfcs.gohfcs.go

@@ -107,7 +107,7 @@ if expflush.IsZero() || filt.Expiration.Before(expflush) {

expflush = filt.Expiration } } - if t := filt.Text; t != "" { + if t := filt.Text; t != "" && t != "." { wordfront := t[0] != '#' wordtail := true t = "(?i:" + t + ")"

@@ -314,7 +314,7 @@ match = true

rv += " announce" } } - if match && f.Text != "" { + if match && f.Text != "" && f.Text != "." { match = false re := f.re_text m := re.FindString(h.Precis)

@@ -332,6 +332,13 @@ }

if m != "" { match = true rv = m + } + } + if match && f.Text == "." { + match = false + if h.Precis != "" { + match = true + rv = h.Precis } } if match {