This commit is contained in:
1 parent
98ed47673f
commit
b914c76df4
2 files changed
+3
-6
No files matched your search
@@ -98,10 +98,7 @@
|
||||
// 提交给下游/生图的文本:填完变量后,把未填的 {占位} 从输出里剔除(只在编辑器里展示)。
|
||||
function outputText (tpl, vals) {
|
||||
var s = fillTpl(tpl, vals)
|
||||
return s.replace(/\{[^{}
|
||||
]{1,24}\}/g, ' ').replace(/[ ]{2,}/g, ' ').replace(/\s*
|
||||
\s*/g, '
|
||||
').trim()
|
||||
return s.replace(/[{][^{}]{1,24}[}]/g, ' ').replace(/[ ]{2,}/g, ' ').trim()
|
||||
}
|
||||
|
||||
function varsOf (p) {
|
||||
@@ -1758,7 +1755,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'promptlib',
|
||||
name: '提示词库',
|
||||
version: '1.8.5',
|
||||
version: '1.8.6',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'],
|
||||
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
|
||||
|
||||
Reference in new issue
Block a user