chore: format

This commit is contained in:
naskya 2023-11-11 09:04:36 +09:00
parent cb88b00785
commit 4ebceb0c7e
Signed by: naskya
GPG key ID: 164DFF24E2D40139

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];