Skip to main content

normalize_re_path

Function normalize_re_path 

Source
pub fn normalize_re_path(path: &str) -> String
Expand description

Normalize a Django re_path() URL pattern. Strips leading ^ / trailing $ anchors and converts (?P<name>...) to :name.