space to _ for prompt inputs
This commit is contained in:
parent
18f664a5a0
commit
ea89778e50
|
|
@ -86,6 +86,7 @@ elements.generator_prompt = {
|
||||||
|
|
||||||
function parseForLateGenerationParameter(input) {
|
function parseForLateGenerationParameter(input) {
|
||||||
if(typeof(input) === "string") { //it should be an array, so string check
|
if(typeof(input) === "string") { //it should be an array, so string check
|
||||||
|
input = input.replace(/ /g,"_");
|
||||||
//console.log("String detected");
|
//console.log("String detected");
|
||||||
if(input.includes(",")) { //comma-separated string?
|
if(input.includes(",")) { //comma-separated string?
|
||||||
//console.log("Splitting string to array");
|
//console.log("Splitting string to array");
|
||||||
|
|
@ -96,6 +97,7 @@ function parseForLateGenerationParameter(input) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
for(i = 0; i < input.length; i++) {
|
for(i = 0; i < input.length; i++) {
|
||||||
|
input[i] = input[i].replace(/ /g,"_");
|
||||||
if(input[i].includes("+")) {
|
if(input[i].includes("+")) {
|
||||||
input[i] = input[i].split("+")
|
input[i] = input[i].split("+")
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue