mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-12-02 12:56:44 -05:00
Change AutoWho regex to match partial hashes
This commit is contained in:
parent
6e0d8b9f4c
commit
1c117507c4
2 changed files with 3 additions and 3 deletions
|
|
@ -137,7 +137,7 @@ def _body_markup(body, body_attr="body_text", own_nick=None):
|
|||
return out, has_links
|
||||
|
||||
|
||||
def _short_hash(b, n=10):
|
||||
def _short_hash(b, n=12):
|
||||
if isinstance(b, (bytes, bytearray)):
|
||||
return bytes(b).hex()[:n]
|
||||
return "?"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue