Skip to content

Commit

Permalink
fix: Fix progress regexp by adding an ending )?$
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Sep 27, 2018
1 parent a365a79 commit 0048f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

export function matchProgress (line) {
const regexp = / *(?<percent>\d+)%( (?<fileCount>\d+)$/
const regexp = / *(?<percent>\d+)%( (?<fileCount>\d+))?$/
const match = line.match(regexp)
if (match) {
let progress = {}
Expand Down

0 comments on commit 0048f43

Please sign in to comment.