forked from extern/easydiffusion
Lines endings...
This commit is contained in:
parent
83d541b60d
commit
f92bca58fa
@ -229,7 +229,7 @@ function parseTaskFromText(str) {
|
|||||||
|
|
||||||
// Prompt
|
// Prompt
|
||||||
afterPromptRe.lastIndex = 0
|
afterPromptRe.lastIndex = 0
|
||||||
const match = afterPromptRe.exec(str);
|
const match = afterPromptRe.exec(str)
|
||||||
if (match) {
|
if (match) {
|
||||||
let prompt = str.slice(0, match.index)
|
let prompt = str.slice(0, match.index)
|
||||||
str = str.slice(prompt.length)
|
str = str.slice(prompt.length)
|
||||||
@ -263,7 +263,7 @@ function parseTaskFromText(str) {
|
|||||||
taskReqBody[key] = TASK_MAPPING[key].parse(val.trim())
|
taskReqBody[key] = TASK_MAPPING[key].parse(val.trim())
|
||||||
console.log(TASK_MAPPING[key].name + ':', taskReqBody[key])
|
console.log(TASK_MAPPING[key].name + ':', taskReqBody[key])
|
||||||
if (!str) {
|
if (!str) {
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user