Skip to content

slashes shouldn't be supported in hostnames #6

@snarfed

Description

@snarfed

hey kyle! looks like brevity currently allows slashes in hostnames when detecting links:

>>> brevity.autolink('/var/www/doubleloop.net/public_html/xyz.php')
u'/var/www/<a class="auto-link" href="http://doubleloop.net/public_html/xyz.php">doubleloop.net/public_html/xyz.php</a>'

this makes truncating interpret those strings as links, while twitter correctly doesn't.

thanks in advance! hope you're good!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions