Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia committed May 14, 2024
1 parent 235edaa commit ff25b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo4j_genai/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("`", "``")
Expand Down

0 comments on commit ff25b93

Please sign in to comment.