Skip to main content

trim_trailing_image_path_str

Function trim_trailing_image_path_str 

Source
pub fn trim_trailing_image_path_str(raw: &str) -> &str
Expand description

Convenience wrapper for trim_trailing_image_path that checks image file extensions via has_supported_image_extension.

Handles file:// scheme and ~/ home expansion before checking.