fix for normal webui

pull/273/head
cou 2024-03-06 22:43:25 +09:00
parent c66dfa2330
commit f1c934b765
1 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,13 @@ export function ch_sd_version() {
} }
function extract_version(text) { function extract_version(text) {
const matches = text.match(/v[0-9]\.[0-9]\.[0-9]/); let matches;
// for forge
if (text[0] == 'f')
matches = text.match(/v[0-9]\.[0-9]\.[0-9]/);
else
matches = text.match(/[0-9]\.[0-9]\.[0-9]/);
if (matches === null || matches.length == 0) { if (matches === null || matches.length == 0) {
return null; return null;
} }