lib: support / - and . in id
0.2.3