algorithmz 0.9.2

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use algorithmz::string::domain_name;

#[test]
fn test_domain_name() {
    let result = domain_name("https://google.com/@r3ap3rpy");
    assert_eq!(result, "google");
}

#[test]
fn test_domain_name_empty() {
    let result = domain_name("");
    assert_eq!(result, "");
}