3 releases

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

#397 in Internationalization (i18n)

Download history 331/week @ 2024-08-12 14/week @ 2024-08-19 45/week @ 2024-09-16 11/week @ 2024-09-23

56 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

~135KB