mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
test: added tests for all types of markdown symbols in URL
This commit is contained in:
parent
bfd47733c2
commit
54ae5c006d
|
@ -82,8 +82,20 @@ static const StringToString urlCases {
|
|||
QStringLiteral("No conflicts with <i>italic "
|
||||
"<a href=\"https://github.com/qTox/qTox/issues/4233\">"
|
||||
"https://github.com/qTox/qTox/issues/4233</a> font</i>")},
|
||||
{QStringLiteral("www.youtube.com"), QStringLiteral("<a href=\"http://www.youtube.com\">"
|
||||
"www.youtube.com</a>")}
|
||||
{QStringLiteral("www.youtube.com"),
|
||||
QStringLiteral("<a href=\"http://www.youtube.com\">www.youtube.com</a>")},
|
||||
{QStringLiteral("https://url.com/some*url/some*more*url/"),
|
||||
QStringLiteral("<a href=\"https://url.com/some*url/some*more*url/\">"
|
||||
"https://url.com/some*url/some*more*url/</a>")},
|
||||
{QStringLiteral("https://url.com/some_url/some_more_url/"),
|
||||
QStringLiteral("<a href=\"https://url.com/some_url/some_more_url/\">"
|
||||
"https://url.com/some_url/some_more_url/</a>")},
|
||||
{QStringLiteral("https://url.com/some~url/some~more~url/"),
|
||||
QStringLiteral("<a href=\"https://url.com/some~url/some~more~url/\">"
|
||||
"https://url.com/some~url/some~more~url/</a>")},
|
||||
{QStringLiteral("https://url.com/some`url/some`more`url/"),
|
||||
QStringLiteral("<a href=\"https://url.com/some`url/some`more`url/\">"
|
||||
"https://url.com/some`url/some`more`url/</a>")},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user