From c983f477f68fb78445499ef4cc1f540d14914ba9 Mon Sep 17 00:00:00 2001 From: cou Date: Wed, 6 Mar 2024 22:49:35 +0900 Subject: [PATCH] fix bug --- javascript/civitai_helper.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/javascript/civitai_helper.js b/javascript/civitai_helper.js index 9058fc8..95ebd59 100644 --- a/javascript/civitai_helper.js +++ b/javascript/civitai_helper.js @@ -42,7 +42,11 @@ function extract_version(text) { return null; } - return matches[0].substring(1); + // Because forge includes v at the beginning of the version text + if (text[0] == 'f') + return matches[0].substring(1); + + return matches[0]; }