Merge pull request #299 from scm6079/issue-297-patch-1

[Bug] no button in the latest SD webui release (the extension also is the latest version #297
main
butaixianran 2024-08-06 14:05:00 +08:00 committed by GitHub
commit 9898b5ce86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ function extract_version(text) {
let matches;
// for forge
if (text[0] == 'f')
matches = text.match(/v[0-9]\.[0-9]\.[0-9]/);
matches = text.match(/v\d+\.\d+\.\d+/);
else
matches = text.match(/[0-9]\.[0-9]\.[0-9]/);
matches = text.match(/\d+\.\d+\.\d+/);
if (matches === null || matches.length == 0) {
return null;