- Removed regex support (controlled in main.h by #ifdef FEATURE_REGEX),
  because it has proven buggy.
This commit is contained in:
Paul Beckingham
2011-01-25 23:54:44 -05:00
parent 14f06e98b7
commit 06e15b6e25
4 changed files with 107 additions and 57 deletions

View File

@@ -32,6 +32,7 @@
#include <text.h>
#include <rx.h>
#include <i18n.h>
#include <main.h>
extern Context context;
@@ -132,6 +133,7 @@ void Subst::apply (
if (mFrom != "")
{
#ifdef FEATURE_REGEX
if (context.config.getBoolean ("regex"))
{
// Insert capturing parentheses, if necessary.
@@ -185,6 +187,7 @@ void Subst::apply (
}
else
{
#endif
if (mGlobal)
{
// Perform all subs on description.
@@ -241,7 +244,9 @@ void Subst::apply (
}
}
}
#ifdef FEATURE_REGEX
}
#endif
}
}