url-mode: wip: regex: mention changes from original regex

This commit is contained in:
Daniel Eklöf 2025-01-30 11:53:52 +01:00
parent 031382f428
commit 6d344f82ee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -380,7 +380,11 @@ regex_detected(const struct terminal *term, enum url_action action, url_list_t *
}
}
// https://gist.github.com/gruber/249502
/*
* Based on https://gist.github.com/gruber/249502, but modified:
* - Do not allow {} at all
* - Do allow matched []
*/
regex_t preg;
const char *regex_string =
"("