Skip to content

Commit

Permalink
fix(cli): fixed regex for parsing flags
Browse files Browse the repository at this point in the history
Before the RegEx did not contain the starting (^) and ending character ($).
  • Loading branch information
YannickFricke committed Nov 17, 2024
1 parent 0f4efa9 commit 73e4113
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:ying_shared/cli/flag.dart';
import 'package:ying_shared/utils/stringify.dart';

final flagPattern = RegExp(
r"(?<dashes>-{1,2})(?<name>\w+)(=(?<value>.*))?",
r"^(?<dashes>-{1,2})(?<name>\w+)(=(?<value>.*))?$",
dotAll: false,
);

Expand Down

0 comments on commit 73e4113

Please sign in to comment.