Skip to content

Commit

Permalink
try to fix double spaces scan error at MultiArgumentos::flagify
Browse files Browse the repository at this point in the history
  • Loading branch information
EverNife committed Nov 27, 2023
1 parent adfa675 commit a68af9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void flagify(){
flagIndexes.add(j);
String arg = stringArgs.get(j);
stringBuilder.append(" ");
if (arg.charAt(arg.length() - 1) == QUOTE_AT_START){
if (arg.length() > 0 && arg.charAt(arg.length() - 1) == QUOTE_AT_START){
//Remove suffix ' from the flag value
stringBuilder.append(StringUtils.substring(arg, 0, -1));
foundLastQuote = true;
Expand Down

0 comments on commit a68af9f

Please sign in to comment.