Skip to main content

sanitize_http_url

Function sanitize_http_url 

Source
fn sanitize_http_url(url: &str) -> Option<String>
Expand description

Sanitizes an HTTP/HTTPS/Git protocol URL.

Handles:

  • https://github.com/org/repo.git
  • https://user:pass@github.com/org/repo.git
  • git://github.com/org/repo.git