3 releases

0.1.5 Aug 17, 2024
0.1.3 Aug 15, 2024
0.1.2 Aug 15, 2024

#208 in Internationalization (i18n)

Download history 127/week @ 2024-08-09 214/week @ 2024-08-16 4/week @ 2024-08-23

345 downloads per month

MulanPSL-2.0

9KB
82 lines

only_url

use only_url::only_url;
use static_init::constructor;
use tracing::info;

#[constructor(0)]
extern "C" fn init() {
  loginit::init()
}

// #[tokio::test]
// async fn test() -> Result<()> {
//   info!("{}", 123456);
//   OK
// }

#[test]
fn main() {
  fn test(s: &str) {
    info!("{s} {}", only_url(s));
  }
  test(" ![ ](content) !   ");
  test(" x ![ ](content) !   ");
  test(" ![x](content)");
  test(" [](content)");
  test(" abc");
}

About

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

关于

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

Dependencies

~130KB