Skip to content

Commit

Permalink
Really fix reisxd#7
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Jul 2, 2022
1 parent 820c588 commit 26a89a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ async function getYTVersion () {
const dumpSysOut = stdout || stderr;
return dumpSysOut
.match(/versionName=([^=]+)/)[1]
.match(/^\d+(\.\d+)*$/)[0];
.replace('\r\n ', '')
.match(/[\d]+(\.\d+)+/g)[0];
}

(async () => {
Expand Down

0 comments on commit 26a89a3

Please sign in to comment.