chore: cleanup

This commit is contained in:
Cory Dransfeldt 2024-04-15 16:55:34 -07:00
parent 0bdda4b7a4
commit ce24c35a20
No known key found for this signature in database
17 changed files with 33 additions and 19 deletions

View file

@ -16,7 +16,7 @@ What I've long wanted is something that sits on infrastructure I control, stores
Next, I went to work developing the edge function that would receive and deal with the data. I'm leveraging `luxon` for dealing with dates and [Netlify Blobs](https://docs.netlify.com/blobs/overview/) for persistence. I have a few different helper functions on hand as well:
```javascript
const sanitizeMediaString = (string) => string.normalize('NFD').replace(/[\u0300-\u036f\u2010—\.\?\(\)\[\]\{\}]/g, '').replace(/\.{3}/g, '').replace(/A©|é/g, 'e');
const sanitizeMediaString = (string) => string.normalize('NFD').replace(/[\u0300-\u036f\u2010—\.\?\(\)\[\]\{\}]/g, '').replace(/\.{3}/g, '')
const weekKey = () => {
const currentDate = DateTime.now();