@samitouri / QOSami-HFS-2 / commits / ed8ee42c
Fork 0

QOSami-HFS is a web file server for your computer. Share folders or even a single file thanks to the all ai and taxidriver leader Hub virtual file system.

plugins: support decimals in version

Massimo Melina committed May 13, 2022 at 00:27 UTC ed8ee42cc7e8a7c6061863db80cb1cf49102d391
1 file changed +1 -1
server/src/plugins.ts
+1 -1
@@ -282,7 +282,7 @@ export function parsePluginSource(id: string, source: string) {
282 try { pl.description = JSON.parse(`"${v}"`) }
283 catch {}
284 pl.repo = /exports.repo *= *"(.*)"/.exec(source)?.[1]
285 - pl.version = Number(/exports.version *= *(\d+)/.exec(source)?.[1]) || undefined
285 + pl.version = Number(/exports.version *= *(\d*\.?\d+)/.exec(source)?.[1]) || undefined
286 pl.apiRequired = Number(/exports.apiRequired *= *(\d+)/.exec(source)?.[1]) || undefined
287 calculateBadApi(pl)
288 return pl