Fix [Parser]: handle fallback for the last arg

This commit is contained in:
Mathias-Boulay 2023-01-03 00:23:02 +01:00
parent 9f8e066c93
commit 66c3aecd26

View File

@ -452,6 +452,8 @@ public class JREUtils {
}
end = Math.min(end, tempEnd);
}
//Fallback
if(end == -1) end = args.length();
//Extract it
String parsedSubString = args.substring(start, end);