mirror of https://github.com/hwchase17/langchain
fix: invalid escape sequence error in regex pattern (#3902)
This PR fixes the "SyntaxError: invalid escape sequence" error in the pydantic.py file. The issue was caused by the backslashes in the regular expression pattern being treated as escape characters. By using a raw string literal for the regex pattern (e.g., r"\{.*\}"), this fix ensures that backslashes are treated as literal characters, thus preventing the error. Co-authored-by: Tomer Levy <tomer.levy@tipalti.com>pull/3942/head
parent
c5c33786a7
commit
9acf80fd69
Loading…
Reference in New Issue