Skip to content

Commit

Permalink
bug: fix surge output parsing (fixes #2090)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianjost authored Aug 22, 2024
1 parent 5782108 commit 27d0dc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ async function getDeploys() {
.map(l => l.trim().replace(/ {3,}/g, " "));
const DEPLOYS = LINES.map(line => {
deploy = line.split(" ").map(a => a.trim());
const [id, domain] = deploy[0].split(" ");
const [, timestamp, provider, host, plan] = deploy;
const [domain, timestamp, provider, host, plan] = deploy;
return {
id,
domain,
timestamp,
provider,
Expand Down

0 comments on commit 27d0dc9

Please sign in to comment.