STYLE: documentation for wordRe DETECT vs REGEXP was swapped around

- Use wordRe::REGEXP (not wordRe::DETECT) if the content is known to
  be a regular expression anyhow.
This commit is contained in:
Mark Olesen
2016-12-18 22:35:20 +01:00
parent 8a11a492f1
commit 6f5cece322
2 changed files with 7 additions and 7 deletions

View File

@ -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;