diff --git a/applications/utilities/preProcessing/createZeroDirectory/boundaryInfo.C b/applications/utilities/preProcessing/createZeroDirectory/boundaryInfo.C index 6dd055b6a3..62ca3f5514 100644 --- a/applications/utilities/preProcessing/createZeroDirectory/boundaryInfo.C +++ b/applications/utilities/preProcessing/createZeroDirectory/boundaryInfo.C @@ -169,7 +169,7 @@ void Foam::boundaryInfo::setType(const label patchI, const word& condition) return; } - if (wordRe(".*[mM]apped.*", wordRe::DETECT).match(types_[patchI])) + if (wordRe(".*[Mm]apped.*", wordRe::REGEXP).match(types_[patchI])) { // ugly hack to avoid overriding mapped types return; diff --git a/src/OpenFOAM/primitives/strings/wordRe/wordRe.H b/src/OpenFOAM/primitives/strings/wordRe/wordRe.H index d8e7fb3eb9..c5a0a3b95e 100644 --- a/src/OpenFOAM/primitives/strings/wordRe/wordRe.H +++ b/src/OpenFOAM/primitives/strings/wordRe/wordRe.H @@ -95,12 +95,12 @@ public: // Note that 'REGEXP' is implicit if 'NOCASE' is specified alone. enum compOption { - LITERAL = 0, //!< treat as a string literal - DETECT = 1, //!< treat as regular expression - REGEXP = 2, //!< detect if the string contains meta-characters - NOCASE = 4, //!< ignore case in regular expression - DETECT_NOCASE = DETECT | NOCASE, - REGEXP_NOCASE = REGEXP | NOCASE + LITERAL = 0, //!< Treat as a string literal + DETECT = 1, //!< Detect if the string contains meta-characters + REGEXP = 2, //!< Treat as regular expression + NOCASE = 4, //!< Ignore case in regular expression + DETECT_NOCASE = DETECT | NOCASE, //!< Combined DETECT and NOCASE + REGEXP_NOCASE = REGEXP | NOCASE //!< Combined REGEXP and NOCASE };