[LyX/master] Fix bug #12772
Richard Kimberly Heck
rikiheck at lyx.org
Sat May 27 02:30:16 UTC 2023
commit 4ed0312c51704780af1c452d3a82a84171b3725a
Author: Daniel Ramoeller <d.lyx at web.de>
Date: Fri May 26 23:38:16 2023 -0400
Fix bug #12772
---
src/Text.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 4fb7754..923fc1d 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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));
More information about the lyx-cvs
mailing list