readthedocs-fr / bin-server

Un outil pour héberger des snippets de code et les partager via une URL.
https://bin.readthedocs.fr
MIT License
14 stars 15 forks source link

Some fixes... #122

Closed Julien00859 closed 3 years ago

Julien00859 commented 3 years ago

fix: prevent generated id to override with routes

There are some routes that are 6 characters long (health and assets) that could be overridden by the generated snippet identifier.

fix: lang and extension parsing

The code converting lang and extension back and forth was confusing and resulted in incoherent parsing. The docstrings and implementations were clashing with one another.

fix: snippet duplication typo

Duplicate a snippet, you get repr(snippet) instead of snippet.code

Fine tuning of ba2aa243641