chore: eslint add sonar (#17989)

This commit is contained in:
Joel 2025-04-14 15:28:20 +08:00 • committed by GitHub
commit d80f4c7d3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 157 additions and 180 deletions

View file

@ -265,7 +265,7 @@ Thought: {{agent_scratchpad}}
`,
}
export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_-]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi
export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_-]{1,50}(\.[a-zA-Z_]\w{0,29}){1,10}#)\}\}/gi
export const resetReg = () => VAR_REGEX.lastIndex = 0