//! [`get_domain_suffix`].
use Psl;
use crate*;
/// Get the suffix of a [`DomainHost`] literal.
///
/// Doesn't actually check if `value` a [`DomainHost`] literal and will give nonsense results if it isn't.
///
/// # Examples
///
/// ```
/// use better_url::util::*;
///
/// assert_eq!(get_domain_suffix("example.com" ), "com" );
/// assert_eq!(get_domain_suffix("example.com." ), "com" );
/// assert_eq!(get_domain_suffix("example.com.." ), "" );
/// assert_eq!(get_domain_suffix("example.co.uk" ), "co.uk");
/// assert_eq!(get_domain_suffix("example.co.uk." ), "co.uk");
/// assert_eq!(get_domain_suffix("example.co.uk.."), "" );
/// ```