From ff25b93be372ec51520b9ecdeb496c2f4ebb0468 Mon Sep 17 00:00:00 2001 From: estelle Date: Tue, 14 May 2024 10:17:41 +0200 Subject: [PATCH] ruff --- src/neo4j_genai/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo4j_genai/filters.py b/src/neo4j_genai/filters.py index 5a03be40..ec80ac8c 100644 --- a/src/neo4j_genai/filters.py +++ b/src/neo4j_genai/filters.py @@ -48,7 +48,7 @@ def safe_field_cypher(field_name: str) -> str: The field name potentially surrounded with backticks if needed, ready to be inserted into a Cypher query. """ - pattern = r'^[a-z_][0-9a-z_]*$' + pattern = r"^[a-z_][0-9a-z_]*$" if re.match(pattern, field_name, re.IGNORECASE): return field_name escaped_field = field_name.replace("`", "``")