Skip to content

Commit 7cd4e31

Browse files
Update lib/mcp/server.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Brian Horakh <35611074+elasticdotventures@users.noreply.github.com>
1 parent 53fed7e commit 7cd4e31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mcp/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ function extractProgressFromLine(line) {
444444
}
445445
}
446446

447-
const fractionMatch = line.match(/(\d+)\s*\/\s*(\d+)(?!\d)/);
447+
const fractionMatch = line.match(/(\d+)\s*\/\s*(\d+(?:\.\d+)?)(\b|[^\d]|$)/);
448448
if (fractionMatch) {
449449
const current = Number(fractionMatch[1]);
450450
const total = Number(fractionMatch[2]);

0 commit comments

Comments
 (0)