mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-06 07:15:30 -04:00
url-mode: wip: regex: don't allow {}, do allow matched []
This commit is contained in:
parent
859b4c8921
commit
031382f428
1 changed files with 7 additions and 3 deletions
10
url-mode.c
10
url-mode.c
|
|
@ -394,12 +394,16 @@ regex_detected(const struct terminal *term, enum url_action action, url_list_t *
|
||||||
"[a-z0-9.\\-]+[.][a-z]{2,4}/"
|
"[a-z0-9.\\-]+[.][a-z]{2,4}/"
|
||||||
")"
|
")"
|
||||||
"("
|
"("
|
||||||
"[^[:space:]()<>]+"
|
"[^[:space:](){}<>]+"
|
||||||
"|"
|
"|"
|
||||||
"\\(([^[:space:]()<>]+|(\\([^[:space:]()<>]+\\)))*\\)"
|
"\\(([^[:space:](){}<>]+|(\\([^[:space:](){}<>]+\\)))*\\)"
|
||||||
|
"|"
|
||||||
|
"\\[([^]\\[[:space:](){}<>]+|(\\[[^]\\[[:space:](){}<>]+\\]))*\\]"
|
||||||
")+"
|
")+"
|
||||||
"("
|
"("
|
||||||
"\\(([^[:space:]()<>]+|(\\([^[:space:]()<>]+\\)))*\\)"
|
"\\(([^[:space:](){}<>]+|(\\([^[:space:](){}<>]+\\)))*\\)"
|
||||||
|
"|"
|
||||||
|
"\\[([^]\\[[:space:](){}<>]+|(\\[[^]\\[[:space:](){}<>]+\\]))*\\]"
|
||||||
"|"
|
"|"
|
||||||
"[^]\\[[:space:]`!(){};:'\".,<>?«»“”‘’]"
|
"[^]\\[[:space:]`!(){};:'\".,<>?«»“”‘’]"
|
||||||
")"
|
")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue