1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00

chg: Change uid to UID

This commit is contained in:
Sayantan Santra 2024-03-31 00:51:32 -05:00
parent 841f877ee8
commit 599b013fc9
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -99,7 +99,7 @@ fn gen_link(style: String, len: usize) -> String {
static CHARS: [char; 36] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', static CHARS: [char; 36] = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
if style == "uid" { if style == "UID" {
nanoid!(len, &CHARS) nanoid!(len, &CHARS)
} else { } else {
format!( format!(