diff --git a/src/linkahead/apiutils.py b/src/linkahead/apiutils.py index be6b2d823a43d3c55a24923e27fe8b9e5796e194..88687716d16343fd3d7fb2d10de32f75513bdab9 100644 --- a/src/linkahead/apiutils.py +++ b/src/linkahead/apiutils.py @@ -626,10 +626,10 @@ def _same_id_as_resolved_entity(this, that): def escape_quoted_text(text: str) -> str: - """The characters `\` and `*` need to be escaped if used in quoted expressions in the query + """The characters `\\` and `*` need to be escaped if used in quoted expressions in the query language. - This function return the given string where the characters `\` and `*` are escaped by a `\`. + This function return the given string where the characters `\\` and `*` are escaped by a `\\`. Parameters ---------- diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py index b9f5cd0f2def7eeaae491601ed47157dd2da7e2d..47d8e3e9f02bb010190213616195ecc91647dcf4 100644 --- a/unittests/test_apiutils.py +++ b/unittests/test_apiutils.py @@ -635,7 +635,6 @@ def test_merge_id_with_resolved_entity(): assert recA.get_property(rtname).value == recB.get_property(rtname).value - def test_escape_quoted_text(): assert escape_quoted_text("bla") == "bla" assert escape_quoted_text("bl\\a") == "bl\\\\a"