Skip to content

Commit 968a668

Browse files
committed
fix: avoid latest api
1 parent 67f1923 commit 968a668

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,9 @@ function parseIssueBody(body: string): RecordBody {
174174
const json = body
175175
.split(issueBodyStatusPrefix)
176176
.filter(e => e)
177-
.at(-1)
177+
.pop()
178178
?.split(issueBodyStatusSuffix)
179-
.filter(e => e)
180-
.at(0)
179+
.filter(e => e)[0]
181180
return JSON.parse(json ?? '')
182181
} catch (e) {
183182
return {}

0 commit comments

Comments
 (0)