Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim input #536

Merged
merged 2 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var details = function () { return ({
inputUI: {
type: 'text',
},
tooltip: 'Variable to check. For example args.librarySettings._id',
tooltip: "Variable to check. For example , \n \n \\nExample\\n\n args.librarySettings._id\n \n \\nExample\\n\n args.inputFileObj._id\n\n \\nExample\\n\n args.userVariables.library.test\n\n \\nExample\\n\n args.userVariables.global.test\n ",
},
{
name: 'condition',
Expand Down Expand Up @@ -64,7 +64,7 @@ var plugin = function (args) {
var lib = require('../../../../../methods/lib')();
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
args.inputs = lib.loadDefaultValues(args.inputs, details);
var variable = String(args.inputs.variable);
var variable = String(args.inputs.variable).trim();
var condition = String(args.inputs.condition);
var value = String(args.inputs.value);
// variable could be e.g. args.librarySettings._id or args.inputFileObj._id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,20 @@ const details = (): IpluginDetails => ({
inputUI: {
type: 'text',
},
tooltip: 'Variable to check. For example args.librarySettings._id',
tooltip: `Variable to check. For example ,

\\nExample\\n
args.librarySettings._id

\\nExample\\n
args.inputFileObj._id

\\nExample\\n
args.userVariables.library.test

\\nExample\\n
args.userVariables.global.test
`,
},
{
name: 'condition',
Expand Down Expand Up @@ -69,7 +82,7 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
args.inputs = lib.loadDefaultValues(args.inputs, details);

const variable = String(args.inputs.variable);
const variable = String(args.inputs.variable).trim();
const condition = String(args.inputs.condition);
const value = String(args.inputs.value);

Expand Down
Loading