Skip to content

Commit 8583534

Browse files
author
legionfu
committed
匹配插件名称 改用非贪婪表达式
1 parent dc462bf commit 8583534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/state.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ state.core = (function () {
741741
// 缺少的插件
742742
missing_ext_list = []
743743
for (let key in json_obj){
744-
ext_name = key.match(/ext-(\S+)-(txt2img|img2img)/)
744+
ext_name = key.match(/ext-(\S+?)-(txt2img|img2img)/)
745745
console.log(key)
746746
if(ext_name != null){
747747
ext_name = ext_name[1]

0 commit comments

Comments
 (0)