@cassidyjames
Copy link

as_validate_has_hyperlink causes validation to fail if I even mention the stand-alone string ftp:// in my release notes—without any actual hostname, which I did for my browser since I now handle protocols. :)

/**
* as_validate_has_hyperlink:
*
* Check if @text contains a hyperlink.
*/
static gboolean
as_validate_has_hyperlink (const gchar *text)
{
if (text == NULL)
return FALSE;
if (g_strstr_len (text, -1, "http://") != NULL)
return TRUE;
if (g_strstr_len (text, -1, "https://") != NULL)
return TRUE;
if (g_strstr_len (text, -1, "ftp://") != NULL)
return TRUE;
return FALSE;
}

See: cassidyjames/ephemeral#260 (comment)