mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
dash encoding is now like percent encoding but with dashes
Refs https://github.com/simonw/datasette/issues/1439#issuecomment-1059851259
This commit is contained in:
parent
f568c76cfb
commit
d2e3fe3fac
3 changed files with 38 additions and 12 deletions
|
|
@ -652,9 +652,11 @@ async def test_derive_named_parameters(sql, expected):
|
|||
"original,expected",
|
||||
(
|
||||
("abc", "abc"),
|
||||
("/foo/bar", "-/foo-/bar"),
|
||||
("/-/bar", "-/---/bar"),
|
||||
("-/db-/table---.csv-.csv", "---/db---/table-------.csv---.csv"),
|
||||
("/foo/bar", "-2Ffoo-2Fbar"),
|
||||
("/-/bar", "-2F-2D-2Fbar"),
|
||||
("-/db-/table.csv", "-2D-2Fdb-2D-2Ftable-2Ecsv"),
|
||||
(r"%~-/", "-25-7E-2D-2F"),
|
||||
("-25-7E-2D-2F", "-2D25-2D7E-2D2D-2D2F"),
|
||||
),
|
||||
)
|
||||
def test_dash_encoding(original, expected):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue