Fixed #2122 -header command did not support negative integers for displayrect

This commit is contained in:
Jindra Petřík
2023-11-10 17:27:37 +01:00
parent c120d08328
commit d6ee7b6988
2 changed files with 3 additions and 1 deletions

View File

@@ -4740,7 +4740,7 @@ public class CommandLineArgumentParser {
Boolean gfx = null;
Integer version = null;
Pattern displayRectPattern = Pattern.compile("\\[(?<x1>[0-9.]+)(?<x1px>px)?,(?<y1>[0-9.]+)(?<y1px>px)?,(?<x2>[0-9.]+)(?<x2px>px)?,(?<y2>[0-9.]+)(?<y2px>px)?\\]");
Pattern displayRectPattern = Pattern.compile("\\[(?<x1>-?[0-9.]+)(?<x1px>px)?,(?<y1>-?[0-9.]+)(?<y1px>px)?,(?<x2>-?[0-9.]+)(?<x2px>px)?,(?<y2>-?[0-9.]+)(?<y2px>px)?\\]");
boolean printOnly = args.size() == 1;