From 3d3b7109cfe85292cc790f8380cb2f2b3aa0821e Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Mon, 7 Oct 2024 17:02:06 +0100 Subject: message: Fix URL parsing to handle quote at end of URL --- src/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.py b/src/message.py index 27cf817..41d1576 100644 --- a/src/message.py +++ b/src/message.py @@ -20,7 +20,7 @@ from gi.repository import Adw, Gtk, GLib import re -re_url_exp = r"(\S+://\S+)" +re_url_exp = r"(\S+://[A-Za-z0-9_.\-~/]+)" re_url = re.compile(re_url_exp) @Gtk.Template(resource_path='/com/fryzekconcepts/weegtk/gtk/message.ui') -- cgit