From 1c10b250b2ac1d723f3e5150effc52b2f497de82 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 28 Oct 2004 10:59:19 +0000 Subject: [PATCH] simplify regex after advice by Angus git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9134 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/ExternalTransforms.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 0d063c1c4a..3c11b24701 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2004-10-28 Georg Baum + + * ExternalTransforms.C (sanitizeLatexOption): simplify regex + 2004-10-27 Georg Baum * ExternalTransforms.C (sanitizeLatexOption): fix regex to handle diff --git a/src/insets/ExternalTransforms.C b/src/insets/ExternalTransforms.C index 0881679797..3a6059a288 100644 --- a/src/insets/ExternalTransforms.C +++ b/src/insets/ExternalTransforms.C @@ -302,7 +302,7 @@ string const sanitizeLatexOption(string const & input) // Strip any trailing commas // "...foo,,,]" -> "...foo" ("...foo,,," may be empty) - static boost::regex const back("^(.*[^,])?(,*)([]] *)$"); + static boost::regex const back("^(.*[^,])?,*[]] *$"); regex_match(output, what, back); if (!what[0].matched) { lyxerr << "Unable to sanitize LaTeX \"Option\": " -- 2.39.2