File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1004,7 +1004,7 @@ static REGEX_BULLET_CONSECUTIVE_LINES: Lazy<Regex> = Lazy::new(|| Regex::new(r"<
1004
1004
pub fn render_bullet_lists ( input_text : & str ) -> String {
1005
1005
// ref: https://stackoverflow.com/a/4902622
1006
1006
// First enclose each bullet with <ul> <li> tags
1007
- let text1 = REGEX_BULLET . replace_all ( & input_text, "<ul><li>$1</li></ul>" ) . to_string ( ) ;
1007
+ let text1 = REGEX_BULLET . replace_all ( input_text, "<ul><li>$1</li></ul>" ) . to_string ( ) ;
1008
1008
// Then remove any consecutive </ul> <ul> tags
1009
1009
REGEX_BULLET_CONSECUTIVE_LINES . replace_all ( & text1, "" ) . to_string ( )
1010
1010
}
@@ -1344,7 +1344,7 @@ pub fn url_path_basename(path: &str) -> String {
1344
1344
let mut url = url_result. unwrap ( ) ;
1345
1345
url. path_segments_mut ( ) . unwrap ( ) . pop_if_empty ( ) ;
1346
1346
1347
- url. path_segments ( ) . unwrap ( ) . last ( ) . unwrap ( ) . to_string ( )
1347
+ url. path_segments ( ) . unwrap ( ) . next_back ( ) . unwrap ( ) . to_string ( )
1348
1348
}
1349
1349
}
1350
1350
You can’t perform that action at this time.
0 commit comments