5 releases

0.1.7 Oct 12, 2024
0.1.6 Oct 12, 2024
0.1.5 Aug 17, 2024
0.1.3 Aug 15, 2024
0.1.2 Aug 15, 2024

#414 in Internationalization (i18n)

Download history 339/week @ 2024-08-14 6/week @ 2024-08-21 33/week @ 2024-09-11 18/week @ 2024-09-18 7/week @ 2024-09-25 3/week @ 2024-10-02 259/week @ 2024-10-09 22/week @ 2024-10-16 1/week @ 2024-10-23

330 downloads per month

MulanPSL-2.0

6KB
73 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");
  test("abc");
  test("[x](xxx)");
  test("https://www.seafile.com/download/")
}

About

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

关于

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

No runtime deps