mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Use Clara v0.0.2.4 (updated) - fix for string lengths
This commit is contained in:
parent
1aa6c91e64
commit
742457cbcf
4
include/external/clara.h
vendored
4
include/external/clara.h
vendored
@ -589,7 +589,7 @@ namespace Clara {
|
||||
}
|
||||
}
|
||||
Mode handleOpt( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
||||
if( std::string( ":=\0", 5 ).find( c ) == std::string::npos )
|
||||
if( std::string( ":=\0", 3 ).find( c ) == std::string::npos )
|
||||
return mode;
|
||||
|
||||
std::string optName = arg.substr( from, i-from );
|
||||
@ -603,7 +603,7 @@ namespace Clara {
|
||||
return None;
|
||||
}
|
||||
Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
|
||||
if( inQuotes || std::string( "\0", 3 ).find( c ) == std::string::npos )
|
||||
if( inQuotes || std::string( "\0", 1 ).find( c ) == std::string::npos )
|
||||
return mode;
|
||||
|
||||
std::string data = arg.substr( from, i-from );
|
||||
|
Loading…
Reference in New Issue
Block a user