mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +00:00
chg: Change uid to UID
This commit is contained in:
parent
841f877ee8
commit
599b013fc9
@ -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!(
|
||||||
|
Loading…
Reference in New Issue
Block a user