#email #domain #address #translation #site #trim #convert

nightly xmail

convert mail address to low trim case , use punycode decode domain

8 releases

0.1.14 Aug 17, 2024
0.1.8 Jan 3, 2024
0.1.5 Nov 25, 2023

#14 in #trim

31 downloads per month

MulanPSL-2.0

11KB
166 lines

xmail

convert mail address to low trim case , use punycode decode domain

#[test]
fn test() {
  assert_eq!(xmail::norm("  3Ti@Site.xn--yfro4i67o "), "3ti@site.新加坡");
  assert_eq!(
    xmail::norm_tld("  3Ti@Site.aA.xn--yfro4i67o ").1,
    "aa.新加坡"
  )
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Dependencies

~2.5MB
~97K SLoC