Skip to content

Commit

Permalink
feat(Text Generation WebUI): support "Validate Regexp" in ./scripts/g…
Browse files Browse the repository at this point in the history
…enerate-config-schema-from-csv.cjs (SP-5083) (#72)
  • Loading branch information
DmitrySmv authored Nov 13, 2024
1 parent baf56ad commit da99274
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const headersObj = {
min: 'Min Value',
max: 'Max Value',
description: 'Description',
validateRegexp: 'Validate Regexp',
};

const types = {
Expand Down Expand Up @@ -316,6 +317,11 @@ const run = async () => {
addCondition(newItem, sourceObj[headersObj.useConditions]);
}

const validateRegexp = sourceObj[headersObj.validateRegexp];
if (validateRegexp) {
newItem.validateRegexp = validateRegexp;
}

destinationArray.push(newItem);
}
});
Expand Down

0 comments on commit da99274

Please sign in to comment.