cxxopts: fix option_matcher regex
This commit is contained in:
parent
9c42aecef5
commit
3f4086ec89
|
|
@ -1453,7 +1453,7 @@ namespace cxxopts
|
||||||
constexpr int OPTION_DESC_GAP = 2;
|
constexpr int OPTION_DESC_GAP = 2;
|
||||||
|
|
||||||
std::basic_regex<char> option_matcher
|
std::basic_regex<char> option_matcher
|
||||||
("--([[:alnum:]][-_[:alnum:]]+)(=(.*))?|-([[:alnum:]]+)");
|
("--([[:alnum:]][-_[:alnum:]]+)(=(.*))?|-([_[:alnum:]]+)");
|
||||||
|
|
||||||
std::basic_regex<char> option_specifier
|
std::basic_regex<char> option_specifier
|
||||||
("(([[:alnum:]]),)?[ ]*([[:alnum:]][-_[:alnum:]]*)?");
|
("(([[:alnum:]]),)?[ ]*([[:alnum:]][-_[:alnum:]]*)?");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue