xiterm

simple vte terminal emulator
git clone https://git.ce9e.org/xiterm.git

commit
58847099a09ca1e0b0fe0f50fc7dd404d0cbce1e
parent
7a668b39813199216e350adbbdedba066dcf8d6a
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-09-26 07:00
refine REGEX_URL

allow anything as long as it does not contain a closing bracket
(markdown) or end in punctuation (grammar)

Diffstat

M xiterm.c 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/xiterm.c b/xiterm.c

@@ -5,7 +5,7 @@
    5     5 #define PCRE2_CODE_UNIT_WIDTH 0
    6     6 #include <pcre2.h>
    7     7 
    8    -1 #define REGEX_URL "https?://[a-zA-Z0-9./?&%=#:_-]+"
   -1     8 #define REGEX_URL "https?://[^\\s)>]*[^\\s)>.,:;?!]"
    9     9 #define KEY(v, s) (event->keyval == (v) && modifiers == (GDK_CONTROL_MASK|(s)))
   10    10 #define KEY_S(v) (event->keyval == (v) && (GDK_SHIFT_MASK|modifiers) == (GDK_SHIFT_MASK|GDK_CONTROL_MASK))
   11    11