Skip to content

Commit

Permalink
feat: disable dot in option format
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jun 21, 2022
1 parent 9e419c9 commit edda239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface OptionConfig<F extends string, T = never> {
*/
export class Option<T extends string = string, F = string> {
private static OptionRE =
/^(-[a-zA-Z], )?--([a-zA-Z.]+)( \[[a-zA-Z]+\]| <[a-zA-Z]+>)?$/;
/^(-[a-zA-Z], )?--([a-zA-Z]+)( \[[a-zA-Z]+\]| <[a-zA-Z]+>)?$/;

readonly name: string;
readonly shortcut?: string;
Expand Down

0 comments on commit edda239

Please sign in to comment.