diff options
author | Juhani Krekelä | 2022-02-27 22:38:45 +0200 |
---|---|---|
committer | Wolfgang Müller | 2022-02-27 22:04:39 +0100 |
commit | dd8daea59e7f93c8bc17627e5573bd7f7191319b (patch) | |
tree | 1c3da5e2d99f29990cc5ae88699ce3d59d29e3b0 /terminal.vala | |
parent | 76c05a8a53faf4489ec766b0fdfcef76f7fb242d (diff) | |
download | weltschmerz-dd8daea59e7f93c8bc17627e5573bd7f7191319b.tar.gz |
Add support for rtmp:// URLs
Diffstat (limited to 'terminal.vala')
-rw-r--r-- | terminal.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.vala b/terminal.vala index da013a5..e2c8d48 100644 --- a/terminal.vala +++ b/terminal.vala @@ -1,6 +1,6 @@ [GtkTemplate (ui = "/weltschmerz/ui/terminal.ui")] class Terminal : Gtk.Overlay { - const string URL_REGEX = """(?>https?|ftp|gopher):\/\/[^[:punct:][:space:]](?>(?>[.,!?:;]*)(?>[^][)(><"“”.,!?:;[:space:]]+|\([^)([:space:]]*\)|"[^"[:space:]]*"))+"""; + const string URL_REGEX = """(?>https?|ftp|gopher|rtmp):\/\/[^[:punct:][:space:]](?>(?>[.,!?:;]*)(?>[^][)(><"“”.,!?:;[:space:]]+|\([^)([:space:]]*\)|"[^"[:space:]]*"))+"""; const uint PCRE2_CASELESS = 0x00000008u; const uint PCRE2_MULTILINE = 0x00000400u; const uint PCRE2_NO_UTF_CHECK = 0x00080000u; |