Match more username-s - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset 2b07185ab6ab48367a5c99f561f08232d371c313
 (DIR) parent 8c095f22c355de1ab27f9ba0b4c8e5fffba0b207
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon, 17 Dec 2018 11:18:29 
       
       Match more username-s
       
       Some mastodon instances instead of the `/@' have a `users/' and so the username
       field of the toot was not catched.
       
       XXX: Maybe we should convert the logic to catch display-name__account that
       XXX: contain both the username and the server.
       
       Diffstat:
        mastodon/mastodon.dcgi |  1 +
        1 files changed, 1 insertions(+), 0 deletions(-)
       ---
       diff -r 8c095f22c355 -r 2b07185ab6ab mastodon/mastodon.dcgi
       --- a/mastodon/mastodon.dcgi    Mon Dec 17 00:55:46 2018 +0100
       +++ b/mastodon/mastodon.dcgi    Mon Dec 17 11:18:29 2018 +0100
       @@ -64,6 +64,7 @@
        
                       if (match($0, /class="status__display-name/) ||
                           match($0, /class="detailed-status__display-name/)) {
       +                       sub(/\/users\//, "/@")
                               match($0, /@[^"]+/)
                               toot["username"] = substr($0, RSTART + 1, RLENGTH - 1)
                       }