[LyX/master] Fix use of std::regex_match

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sun Jul 19 19:23:00 UTC 2020


Le 19/07/2020 à 19:09, Thibaut Cuvelier a écrit :
> commit 467d57bca1d07856bb48e245d9a148ca1c72922e
> Author: Thibaut Cuvelier <cuvelier.thibaut at gmail.com>
> Date:   Thu Jul 9 02:38:07 2020 +0200
> 
>      Fix use of std::regex_match
> ---
>   src/insets/InsetBibtex.cpp |   23 +++++++++++------------
>   1 files changed, 11 insertions(+), 12 deletions(-)
> 
> -			std::regex_match(tag, match, tagRegex);
> +			regex_match(tag, match, tagRegex);
>   
> -			if (toDocBookTag.find(match[1]) == toDocBookTag.end()) {
> +			if (regex_match(tag, match, tagRegex)) {

Hi Thibaut,

Now I see two calls to regex_match(). That looks like cut and paste mistake.

JMarc


More information about the lyx-devel mailing list