Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Further fix for startswith and endswith
  • Loading branch information
adxsoft authored Dec 5, 2023
1 parent dcbfb64 commit 6c06ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2084,12 +2084,12 @@ function processCommandLines(action, command, commandlines) {

if (command === "blocks") {
if (arg[0] !== "*" && arg[arg.length - 1] === "*") {
addQueryLines(command, prefix, "arg_blockcontent_startswith", arg.substring(1));
addQueryLines(command, prefix, "arg_blockcontent_startswith", arg.substring(0, arg.length - 1));
continue;
}

if (arg[0] === "*" && arg[arg.length - 1] !== "*") {
addQueryLines(command, prefix, "arg_blockcontent_endswith", arg.substring(0, arg.length - 1));
addQueryLines(command, prefix, "arg_blockcontent_endswith", arg.substring(1));
continue;
}

Expand Down

0 comments on commit 6c06ce5

Please sign in to comment.