This commit is contained in:
Daniel Ramoeller 2023-05-26 23:38:16 -04:00 committed by Richard Kimberly Heck
parent 3895c79879
commit 4ed0312c51

View File

@ -5396,7 +5396,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// invalid after regex_match returns, since it is then
// being given a temporary object. (Thanks to Georg for
// figuring that out.)
regex const link_re("^([a-z]+):.*");
regex const link_re("^(([a-z]+):|www\.).*");
smatch matches;
string const c = to_utf8(lowercase(content));