home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1045024276

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1439#issuecomment-1045024276 https://api.github.com/repos/simonw/datasette/issues/1439 1045024276 IC_kwDOBm6k_c4-Sc4U 9599 2022-02-18T19:01:42Z 2022-02-18T19:55:24Z OWNER

Maybe I should use -/ to encode forward slashes too, to defend against any ASGI servers that might not implement raw_path correctly. ```python def dash_encode(s): return s.replace("-", "--").replace(".", "-.").replace("/", "-/")

def dash_decode(s): return s.replace("-/", "/").replace("-.", ".").replace("--", "-") ```

```pycon

dash_encode("foo/bar/baz.csv") 'foo-/bar-/baz-.csv' dash_decode('foo-/bar-/baz-.csv') 'foo/bar/baz.csv' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
973139047  
Powered by Datasette · Queries took 0.927ms · About: github-to-sqlite