Skip to content

Commit 6164aef

Browse files
committed
Client fixes for sts...
1 parent d0abee4 commit 6164aef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

client/src/components/Tool/ToolForm.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ import axios from "axios";
114114
import { getAppRoot } from "onload/loadConfig";
115115
import { mapActions, mapState, storeToRefs } from "pinia";
116116
117-
import { canMutateHistory, getToolInputs } from "@/api";
117+
import { canMutateHistory } from "@/api";
118+
import { getToolInputs } from "@/api/tools"
118119
import { useUserToolCredentials } from "@/composables/userToolCredentials";
119120
import { useConfigStore } from "@/stores/configurationStore";
120121
import { useHistoryItemsStore } from "@/stores/historyItemsStore";

client/src/components/Tool/structured.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ function validateParameter(inputKey: string, inputValue: any, parameterModel: To
442442
if (shouldFail) {
443443
return false;
444444
}
445-
} else if (validator.expression && (/^[\^$.*+?()\[\]{}|\\-]/.test(validator.expression) || validator.expression.includes(".*") || validator.expression.endsWith("$"))) {
445+
} else if (validator.expression && (/^[\^$.*+?()[\]{}|\\-]/.test(validator.expression) || validator.expression.includes(".*") || validator.expression.endsWith("$"))) {
446446
// Try to treat as regex if it looks like a regex pattern
447447
try {
448448
const regex = new RegExp(validator.expression);
@@ -639,7 +639,7 @@ function validateParameter(inputKey: string, inputValue: any, parameterModel: To
639639
if (shouldFail) {
640640
return false;
641641
}
642-
} else if (validator.expression && (/^[\^$.*+?()\[\]{}|\\-]/.test(validator.expression) || validator.expression.includes(".*") || validator.expression.endsWith("$"))) {
642+
} else if (validator.expression && (/^[\^$.*+?()[\]{}|\\-]/.test(validator.expression) || validator.expression.includes(".*") || validator.expression.endsWith("$"))) {
643643
// Try to treat as regex if it looks like a regex pattern
644644
try {
645645
const regex = new RegExp(validator.expression);

0 commit comments

Comments
 (0)