diff options
author | Juhani Krekelä | 2021-07-08 09:50:37 +0300 |
---|---|---|
committer | Wolfgang Müller | 2021-07-09 11:53:32 +0200 |
commit | 41227826451130f84bb643bb29e937be5fff02a6 (patch) | |
tree | e8e9515e034675b7b246d56f01949a91cd3381d0 /terminal.vala | |
parent | 59767124ed7768c82621c414549d24d33096b16e (diff) | |
download | weltschmerz-41227826451130f84bb643bb29e937be5fff02a6.tar.gz |
Add support for gopher:// 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 b2a610f..076d665 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):\/\/[^[:punct:][:space:]](?>[^][)(><"“”[:space:]]+|\([^)([:space:]]*\)|"[^"[:space:]]*")+"""; + const string URL_REGEX = """(?>https?|ftp|gopher):\/\/[^[:punct:][:space:]](?>[^][)(><"“”[:space:]]+|\([^)([:space:]]*\)|"[^"[:space:]]*")+"""; const uint PCRE2_CASELESS = 0x00000008u; const uint PCRE2_MULTILINE = 0x00000400u; const uint PCRE2_NO_UTF_CHECK = 0x00080000u; |