Skip to content

Commit b3383e6

Browse files
feat(action,PVQ-5275): Added progress regex to config.json and edited progress bar class so regex matches it correctly.
1 parent 7f475fe commit b3383e6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@
145145
],
146146
"errors": {
147147
"101": "Unforseen error happened. More info in logs."
148-
}
148+
},
149+
"progress_regex": "^(?<text>[^:]+):\\s+(?<progress>\\d{1,3})%"
149150
}
150151
]
151152
}

src/main/java/net/pdfix/ConsoleProgressBar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void printProgress(boolean isFirst, boolean isLast) {
132132
line.append("\r");
133133
}
134134

135-
line.append(String.format("%s :", title));
135+
line.append(String.format("%s : ", title));
136136

137137
for (int i = line.length(); i < percentStart; i++) {
138138
line.append(' ');

0 commit comments

Comments
 (0)