Skip to content

Commit

Permalink
Merge pull request #302
Browse files Browse the repository at this point in the history
Fix negative value task index bug
  • Loading branch information
NereusWB922 authored Nov 12, 2023
2 parents d5bb179 + 6ca7094 commit 101cb72
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public static List<String> extractAllOptionNames(String argString) {
String[] splitBySpace = argString.split(" ");
for (String s : splitBySpace) {
if (s.startsWith("-") || s.startsWith("--")) {
if (!s.matches("-?\\d+")) {
list.add(s);
}
list.add(s);
}
}
return list;
Expand Down

0 comments on commit 101cb72

Please sign in to comment.