cxxopts: fix option_matcher regex

This commit is contained in:
Gwenhael Goavec-Merou 2020-07-24 08:34:44 +02:00
parent 9c42aecef5
commit 3f4086ec89
1 changed files with 1 additions and 1 deletions

View File

@ -1453,7 +1453,7 @@ namespace cxxopts
constexpr int OPTION_DESC_GAP = 2;
std::basic_regex<char> option_matcher
("--([[:alnum:]][-_[:alnum:]]+)(=(.*))?|-([[:alnum:]]+)");
("--([[:alnum:]][-_[:alnum:]]+)(=(.*))?|-([_[:alnum:]]+)");
std::basic_regex<char> option_specifier
("(([[:alnum:]]),)?[ ]*([[:alnum:]][-_[:alnum:]]*)?");