mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
d4d6267991
commit
1c10b250b2
@ -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
|
||||
|
@ -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\": "
|
||||
|
Loading…
Reference in New Issue
Block a user