mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:06:56 +08:00
parent
bd43ca6275
commit
45cebf09b0
@ -30,7 +30,7 @@ export const checkHasQueryBlock = (text: string) => {
|
|||||||
* {{#1711617514996.sys.query#}} => [sys, query]
|
* {{#1711617514996.sys.query#}} => [sys, query]
|
||||||
*/
|
*/
|
||||||
export const getInputVars = (text: string): ValueSelector[] => {
|
export const getInputVars = (text: string): ValueSelector[] => {
|
||||||
if (!text)
|
if (!text || typeof text !== 'string')
|
||||||
return []
|
return []
|
||||||
|
|
||||||
const allVars = text.match(/{{#([^#]*)#}}/g)
|
const allVars = text.match(/{{#([^#]*)#}}/g)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user