fix variable invalid when key only one character (#2377)

pull/2384/head
takatost 2 years ago committed by GitHub
parent 1ebf740908
commit 556d1d0390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +1,6 @@
import re
REGEX = re.compile(r"\{\{([a-zA-Z_][a-zA-Z0-9_]{1,29}|#histories#|#query#|#context#)\}\}")
REGEX = re.compile(r"\{\{([a-zA-Z_][a-zA-Z0-9_]{0,29}|#histories#|#query#|#context#)\}\}")
class PromptTemplateParser:

Loading…
Cancel
Save