commit 4ed0312c51704780af1c452d3a82a84171b3725a
Author: Daniel Ramoeller <d....@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));
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to