]> Sergey Matveev's repositories - stargrave-blog.git/commit
URLs support
authorSergey Matveev <stargrave@stargrave.org>
Sat, 9 May 2020 11:48:27 +0000 (14:48 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 9 May 2020 11:48:27 +0000 (14:48 +0300)
commitfcf6e624f33fda24bb0cd157eeb3549639e9f28e
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904
parent9a8e5797c8b2335a67868912900b742962083b6b
URLs support

SGBlog has simple regexp that can automatically create <a href>-s for
something that looks like URL. But it has hard coded possible schemes:

    ftp://
    gopher://
    http://
    https://
    telnet://

Also if it sees something like 9a8e5797c8b2335a67868912900b742962083b6b
then it will recognize it as a commit's hash and create link to it.