Skip to content

Commit

Permalink
Fix parse args not filtering commands properly
Browse files Browse the repository at this point in the history
  • Loading branch information
javaherisaber committed Sep 9, 2022
1 parent 900fc3d commit 8f62e4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/common/parse_args.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
String parseArgs(List<String> args) {
final commandList = args.map((arg) => arg.replaceAll(' ', '\\ ')).toList();
final commandList = args
.map((arg) => arg.replaceAll(' ', '\\ ').replaceAll('(', '\\(').replaceAll(')', '\\)'))
.toList();
return commandList.join(' ');
}

0 comments on commit 8f62e4c

Please sign in to comment.