Skip to content

Commit 8d2d992

Browse files
authored
fix: dataset choice hint (#6514)
* fix: dataset choice hint * fix: regex replaceVarible remove useless match group
1 parent 3e07bd2 commit 8d2d992

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/global/common/string/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function replaceVariable(
8585
const escapedKey = key.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
8686

8787
replacements.push({
88-
pattern: `{{(${escapedKey})}}`,
88+
pattern: `{{${escapedKey}}}`,
8989
replacement: formatVal
9090
});
9191

packages/global/core/workflow/node/constant.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,11 @@ export const datasetQuoteValueDesc = `{
247247
q: string;
248248
a: string
249249
}[]`;
250-
export const datasetSelectValueDesc = `{
251-
datasetId: string;
252-
}[]`;
250+
export const datasetSelectValueDesc = `[
251+
{
252+
"datasetId": "6693a4a6b69b7a9b0e37d9b0"
253+
}
254+
]`;
253255

254256
export const AppNodeFlowNodeTypeMap: Record<any, boolean> = {
255257
[FlowNodeTypeEnum.pluginModule]: true,

0 commit comments

Comments
 (0)