いや違うわ、slugの作り方が悪いだけだ

```

const slug = name

.toLowerCase()

.replace(/ /g, "-")

.replace(/[^\w-]+/g, "");

```

Reply to this note

Please Login to reply.

Discussion

I might need to make this manual and required in badge creation form instead of doing this 🤔

That's correct. Or `.replace(/[^\w-]+/g, "-");`

Added ID field, perhaps is more annoying to do manually but also gives people control over d tag.

https://void.cat/d/VKhjkWWwruVF25Zix8fn5D.webp

Nice! I prefer it, and we're used to seeing it on blogs (e.g. wordpress).

What are these ID's?

多分なににしてもユーザからは問題なさそうなので(しらんけど)、簡単に治すなら`.replace(/[^\w-]+/g, "-");`くらいにしておくのが良いか

若しくはSpeaker Deckみたいに無理矢理ラテンアルファベットに変換するか