Skip to content

Commit 9b31e8c

Browse files
committed
-l help - proper regex
While the pattern is specified as a regex, use correct syntax for the numbers.
1 parent d9cd9ae commit 9b31e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ parse_bitrate(char *optarg, long long int *bitrate)
10181018
return true;
10191019
}
10201020
if (strcmp(optarg, "help") == 0) {
1021-
constexpr char const *NUMERIC_PATTERN = "{1-9}{0-9}*[kMG][!][E]";
1021+
constexpr char const *NUMERIC_PATTERN = "[1-9][0-9]*[kMG][!][E]";
10221022
col()
10231023
<< "Usage:\n"
10241024
<< "\tuv " << TERM_BOLD "-l [auto | dynamic | unlimited | "

0 commit comments

Comments
 (0)