mirror of
https://example.com
synced 2024-11-23 09:46:39 +09:00
chore: format
This commit is contained in:
parent
d173ad3925
commit
5ff1925108
1 changed files with 3 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue