Crates.io | sc_decode |
lib.rs | sc_decode |
version | 0.1.2 |
source | src |
created_at | 2023-09-07 14:57:07.647822 |
updated_at | 2023-09-07 16:24:17.741129 |
description | Special character decoding |
homepage | |
repository | https://github.com/flunas/sc_decode.git |
max_upload_size | |
id | 966306 |
size | 4,291 |
sc_decode
是一个对特殊字符进行解码的小工具。
有个别特殊字符解码后使用format!格式化后会有 \
,需自行去除。
decode - 对特殊字符进行解码
let arg = "123%40gmail.com";
let val = sc_decode::decode(arg);
assert_eq("123@gmail.com", val);