[LyX/master] Fix bug #12772

José Matos jaomatos at gmail.com
Sat May 27 08:37:46 UTC 2023


On Sat, 2023-05-27 at 04:30 +0200, Richard Kimberly Heck wrote:
> 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));
>  

Not related with this change but I noticed a warning in this file:

/home/jamatos/lyx/lyx.anon/src/Text.cpp: In member function ‘void
lyx::Text::dispatch(lyx::Cursor&, lyx::FuncRequest&)’:
/home/jamatos/lyx/lyx.anon/src/Text.cpp:5399:45: warning: unknown
escape sequence: '\.'
5399 | regex const link_re("^(([a-z]+):|www\.).*");
| ^~~~~~~~~~~~~~~~~~~~~~

-- 
José Abílio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230527/d8bf6463/attachment.html>


More information about the lyx-devel mailing list