]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
Fix bug #12772
[lyx.git] / src / Text.cpp
index 4fb77548a0c8ec3b8d510efbfd1c71f6f14ae628..923fc1db6cba8c72ad4ffefcc89963a8b4295060 100644 (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));