Enhancement - Integration
- Integrated Cmd object. - Enhanced Context object with dispatch and shadow methods. - Fixed bug in Context::parse. - Implemented command parsing. - Fixed Sequence bug, and unit tests.
This commit is contained in:
@@ -68,6 +68,12 @@ bool Sequence::valid (const std::string& input) const
|
||||
if (range.size () < 1 ||
|
||||
range.size () > 2)
|
||||
return false;
|
||||
|
||||
if (range.size () == 1 && !validId (range[0]))
|
||||
return false;
|
||||
|
||||
if (range.size () == 2 && !validId (range[1]))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user