my eye

Use re to strip suffixes from promoted results

Committed 4aa935

--- a/webint_search/templates/__init__.py
+++ b/webint_search/templates/__init__.py

+import re
 from pprint import pformat
 
 import pendulum
 import webagt
 from web import tx
 
-__all__ = ["pformat", "tx", "webagt", "pendulum"]
+__all__ = ["pformat", "tx", "webagt", "pendulum", "re"]

--- a/webint_search/templates/results.html
+++ b/webint_search/templates/results.html

         $elif result_url.host in blocked_sites:
             $continue
         <div style="opacity:$opacity;line-height:1;margin:.25em 0">
-        <a href=$result_url>$result_text.removesuffix(suffix)</a><br>
+        <a href=$result_url>$re.sub(f"{suffix}$", "", result_text)</a><br>
         <small><small>
         $if icon:
             <img style=height:1.25em;position:relative;top:.225em src=$icon>&ensp;\