mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
fix: remove regex match groups (#6531)
This commit is contained in:
@@ -575,7 +575,7 @@ export function replaceEditorVariable({
|
||||
const escapedId = id.replace(variableRegex, '\\$&');
|
||||
|
||||
replacements.push({
|
||||
pattern: `\\{\\{\\$(${escapedNodeId}\\.${escapedId})\\$\\}\\}`,
|
||||
pattern: `\\{\\{\\$${escapedNodeId}\\.${escapedId}\\$\\}\\}`,
|
||||
replacement: formatVal
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user