Blog posts on "js"

< Come back to blog

EN How to Search for Emojis with Regular Expressions

Turns out the documentation on MDN wasn't complete for this piece. But there is such a thing as Unicode property escapes. And I was astonished when i find out there is a shorthand for Emojis in there! I said it wasn't really complete because you need to pass the unicode flag (u ) in your RegExp for this to work. Here's the code snippet. [...] (Notice the u at the end.) And this will be the output: The...

EN Setting up a Nuxt Blog with Netlify, Netlify-CMS and Netlify Identity.

1. Github account First you need to publish the repository to Github. So If you don't have a Github account yet, go create one. 2. Template If you are using Nuxt, any template will do the job. Remember to hide anything you don't want to be published in the .gitignore first (check mine, for example). I used this one as inspiration. I would recommend to use it for the scaffolding: