Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
92808718
Commit
92808718
authored
Feb 21, 2023
by
comfyanonymous
Browse files
Fix escaped \{ appearing as { in workflows.
parent
97e18bf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
webshit/index.html
webshit/index.html
+6
-2
No files found.
webshit/index.html
View file @
92808718
...
@@ -344,14 +344,18 @@ function graphToPrompt() {
...
@@ -344,14 +344,18 @@ function graphToPrompt() {
prompt
=
prompt
.
substring
(
0
,
startIndex
)
+
randomOption
+
prompt
.
substring
(
endIndex
+
1
);
prompt
=
prompt
.
substring
(
0
,
startIndex
)
+
randomOption
+
prompt
.
substring
(
endIndex
+
1
);
}
}
widget
.
value
=
prompt
.
replace
(
"
\\
{
"
,
"
{
"
).
replace
(
"
\\
}
"
,
"
}
"
)
;
widget
.
value
=
prompt
;
}
}
}
}
}
}
for
(
let
y
in
n
.
widgets
)
{
for
(
let
y
in
n
.
widgets
)
{
if
(
n
.
widgets
[
y
].
dynamic_prompt
&&
n
.
widgets
[
y
].
dynamic_prompt
===
true
)
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
.
replace
(
"
\\
{
"
,
"
{
"
).
replace
(
"
\\
}
"
,
"
}
"
);
}
else
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
;
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
;
}
}
}
for
(
let
y
in
n
.
inputs
)
{
for
(
let
y
in
n
.
inputs
)
{
let
parent_node
=
n
.
getInputNode
(
y
);
let
parent_node
=
n
.
getInputNode
(
y
);
if
(
parent_node
)
{
if
(
parent_node
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment