1
0
Fork 1
mirror of https://example.com synced 2024-11-23 09:46:39 +09:00

chore: format

This commit is contained in:
naskya 2023-11-11 09:04:36 +09:00
parent d173ad3925
commit 5ff1925108
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -17,7 +17,9 @@ export default define(meta, paramDef, async () => {
let tag_name: string;
const pattern = /"version": "(.*)",$/m;
await fetch("https://code.naskya.net/naskya/firefish/source-by/main/package.json")
await fetch(
"https://code.naskya.net/naskya/firefish/source-by/main/package.json",
)
.then((response) => response.text())
.then((text) => {
tag_name = pattern.exec(text)[1];