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 #297main
commit
9898b5ce86
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue