This commit is contained in:
2025-02-22 14:57:51 +01:00
parent d82e455bd5
commit f17f6e0c16
10 changed files with 40 additions and 31 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ pub async fn re_shorturl(
}
fn to_shorturl(url: &str) -> Result<String, &str> {
pub fn to_shorturl(url: &str) -> Result<String, &str> {
let re = Regex::new(r"comments/([a-zA-Z0-9]+)").unwrap();
if let Some(caps) = re.captures(url) {