summaryrefslogtreecommitdiff
path: root/src/creole-test.c
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-16 22:56:49 +0100
committerLinnnus <[email protected]>2024-02-16 22:58:00 +0100
commit90f4eb831fd6f1e8a293851f1b8f2ed5238f5e58 (patch)
treebaff26980eb274b7d988460131e83ed15dc845f3 /src/creole-test.c
parent17919e38efb4c454edf48957bbc42f91c109e89e (diff)
fix(creole): Add special case for "." at end of raw URL
Diffstat (limited to 'src/creole-test.c')
-rw-r--r--src/creole-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/creole-test.c b/src/creole-test.c
index 76d62af..ee29e54 100644
--- a/src/creole-test.c
+++ b/src/creole-test.c
@@ -107,6 +107,12 @@ struct {
.output = "<p><a href=\"mailto:[email protected]\">"
"mailto:[email protected]</a></p>"
},
+ { // This test captures a non-standard (?) special case in the parser.
+ .name = "Raw URL followed by full stop",
+ .input = "My favorite website is https://wiki.c2.com/.",
+ .output = "<p>My favorite website is <a href=\"https://wiki.c2.com/\">"
+ "https://wiki.c2.com/</a>.</p>"
+ },
{
.name = "Unnamed URL",
.input = "[[http //example.com/examplepage]]",