]> git.lyx.org Git - features.git/commitdiff
simplify regex after advice by Angus
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 28 Oct 2004 10:59:19 +0000 (10:59 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 28 Oct 2004 10:59:19 +0000 (10:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9134 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/ExternalTransforms.C

index 0d063c1c4a97ab0673fb332d4aa93d38c8948569..3c11b24701ce580cebd8292119941a64bdeff9aa 100644 (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
index 0881679797873e27b17d9e6df617589225d0f9f2..3a6059a288c6f4b43327b217cabff08e4df83db7 100644 (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\": "