make ParserKeyword::matches only return true if the deck keyword name is valid
This commit is contained in:
parent
fe638c2fc8
commit
f6689d838e
@ -521,7 +521,9 @@ namespace Opm {
|
||||
}
|
||||
|
||||
bool ParserKeyword::matches(const std::string& deckKeywordName) const {
|
||||
if (m_deckNames.count(deckKeywordName) > 0)
|
||||
if (!validDeckName(deckKeywordName))
|
||||
return false;
|
||||
else if (m_deckNames.count(deckKeywordName) > 0)
|
||||
return true;
|
||||
else if (hasMatchRegex())
|
||||
return boost::regex_match(deckKeywordName, m_matchRegex);
|
||||
|
Loading…
Reference in New Issue
Block a user