Commit Diff


commit - d26637f129a9b137def8d18e05603944b9badf41
commit + 4852f411b4f51da99a0ac2323e9c160d2bae4a05
blob - 2ef2d7e498963cbe0c14c049826fbc3dffc85600
blob + 476e044795871e2d885340e6a29994c7fd265153
--- main.go
+++ main.go
@@ -26,7 +26,7 @@ var (
 
 	tooLongRe = regexp.MustCompile(`full message at (https://libera.ems.host/.*)[)]`)
 
-	httplink = regexp.MustCompile(`https?://[^\s]+`)
+	httplink = regexp.MustCompile(`https?://[^\s)]+`)
 )
 
 func matrix2gemini(conn *irc.Conn, line *irc.Line) {
@@ -142,6 +142,7 @@ func getPageHead(node *html.Node) *html.Node {
 }
 
 func pagetitle(conn *irc.Conn, line *irc.Line) {
+	log.Println("text is", line.Text())
 	matches := httplink.FindAllString(line.Text(), -1)
 
 	for _, link := range matches {