mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-05-01 03:31:41 +00:00
Fix bug #183
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,6 +11,8 @@ export default (tags, autoBreakBeforeWrap = false, autoBreakAfterWrap = false) =
|
||||
tags = tags.replace(/\r/g, '\n') // 回车符
|
||||
tags = tags.replace(/\n+/g, '\n') // 连续换行符
|
||||
|
||||
tags = tags.replace(/\>_\</g, '|||EXPRESSION1|||') // >_<
|
||||
|
||||
const brackets = {
|
||||
'(': ')',
|
||||
'[': ']',
|
||||
@@ -110,6 +112,10 @@ export default (tags, autoBreakBeforeWrap = false, autoBreakAfterWrap = false) =
|
||||
result.push(temp.trim())
|
||||
}
|
||||
|
||||
result.forEach((value, index) => {
|
||||
result[index] = value.replace(/\|\|\|EXPRESSION1\|\|\|/g, '>_<')
|
||||
})
|
||||
|
||||
/*let result2 = []
|
||||
let len = result.length
|
||||
for (let i = 0; i < len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user