From: Georg Baum Date: Thu, 28 Oct 2004 10:59:19 +0000 (+0000) Subject: simplify regex after advice by Angus X-Git-Tag: 1.6.10~14899 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1c10b250b2ac1d723f3e5150effc52b2f497de82;p=features.git simplify regex after advice by Angus git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9134 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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\": "