Handle \r\n correctly in CSS escapes, refs #980

This commit is contained in:
Simon Willison 2020-09-29 12:16:30 -07:00
commit 5b8b8ae597
2 changed files with 5 additions and 1 deletions

View file

@ -425,6 +425,7 @@ def test_escape_fts(query, expected):
[
("dog", "dog"),
('dateutil_parse("1/2/2020")', r"dateutil_parse(\0000221/2/2020\000022)"),
("this\r\nand\r\nthat", r"this\00000Aand\00000Athat"),
],
)
def test_escape_css_string(input, expected):