From 92ca5012ce4a9d8984de2d5b4c144497e6926d2b Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 1 Feb 2018 22:08:55 -0500 Subject: [PATCH] Double escape binary regexes in module and citeengine searches. See previous commit for explanation. (cherry picked from commit 0e3d20929570729d2db5cd3b4b930e5234b426ac) --- lib/configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index bfa48525b2..23ec3c82dc 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -1511,7 +1511,7 @@ def processModuleFile(file, filename, bool_docbook): We expect output: "ModuleName" "filename" "Description" "Packages" "Requires" "Excludes" "Category" ''' - remods = re.compile(b'\DeclareLyXModule\s*(?:\[([^]]*?)\])?{(.*)}') + remods = re.compile(b'\\\\DeclareLyXModule\s*(?:\[([^]]*?)\])?{(.*)}') rereqs = re.compile(b'#+\s*Requires: (.*)') reexcs = re.compile(b'#+\s*Excludes: (.*)') recaty = re.compile(b'#+\s*Category: (.*)') @@ -1635,7 +1635,7 @@ def processCiteEngineFile(file, filename, bool_docbook): We expect output: "CiteEngineName" "filename" "CiteEngineType" "CiteFramework" "DefaultBiblio" "Description" "Packages" ''' - remods = re.compile(b'\DeclareLyXCiteEngine\s*(?:\[([^]]*?)\])?{(.*)}') + remods = re.compile(b'\\\\DeclareLyXCiteEngine\s*(?:\[([^]]*?)\])?{(.*)}') redbeg = re.compile(b'#+\s*DescriptionBegin\s*$') redend = re.compile(b'#+\s*DescriptionEnd\s*$') recet = re.compile(b'\s*CiteEngineType\s*(.*)')