simplify regex after advice by Angus

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9134 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2004-10-28 10:59:19 +00:00
parent d4d6267991
commit 1c10b250b2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-10-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ExternalTransforms.C (sanitizeLatexOption): simplify regex
2004-10-27 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ExternalTransforms.C (sanitizeLatexOption): fix regex to handle

View File

@ -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\": "