nips icon indicating copy to clipboard operation
nips copied to clipboard

nip-29: restriction for _id_

Open kehiy opened this issue 1 year ago • 3 comments

I decided to update id details before working on names #1484. here are some restrictions added and more details.

kehiy avatar Sep 12 '24 12:09 kehiy

This is okay, but I don't really like "." as a character for an id.

I would stick with a-z,0-9,-,_

A Regex would look something like this:

`^[a-z0-9_-]+$`

ismyhc avatar Sep 12 '24 13:09 ismyhc

@ismyhc I've updated the details. a-z (case-insensitive), 0-9, -, and _. which can support UUID as well.

kehiy avatar Sep 12 '24 13:09 kehiy

@ismyhc I've updated the details. a-z (case-insensitive), 0-9, - and _. which can support UUID as well.

This works for me.

ismyhc avatar Sep 12 '24 14:09 ismyhc

should we close this? @fiatjaf @ismyhc

kehiy avatar Nov 27 '24 19:11 kehiy

Yes, I think so, since it conflicts with being able to upgrade unmanaged groups now.

staab avatar Nov 27 '24 19:11 staab

@staab thanks a lot. done.

kehiy avatar Nov 27 '24 19:11 kehiy