File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ fn pack_config(crate_name: &str) -> PackConfig {
2727 ByteRegex :: new ( "<a class=\" src\" href=\" [^\" ]*/_[^\" ]*\" >source</a>" ) . unwrap ( ) ;
2828
2929 // Rewrite srclinks from `../../crate_name/foo" to "/__DOCSERVER_SRCLINK/foo".
30- let re_rewrite_src = ByteRegex :: new ( & format ! (
31- "<a class=\" src\" href=\" (\\ .\\ ./)+src/{}" ,
32- & crate_name
33- ) )
34- . unwrap ( ) ;
30+ let re_rewrite_src = ByteRegex :: new ( & format ! ( "href=\" (\\ .\\ ./)+src/{}" , & crate_name) ) . unwrap ( ) ;
3531
3632 // Remove crates.js
3733 let re_remove_cratesjs =
@@ -66,7 +62,7 @@ fn pack_config(crate_name: &str) -> PackConfig {
6662 )
6763 . into_owned ( ) ;
6864 let res = re_rewrite_src
69- . replace_all ( & res, & b"<a class= \" src \" href=\" /__DOCSERVER_SRCLINK" [ ..] )
65+ . replace_all ( & res, & b"href=\" /__DOCSERVER_SRCLINK" [ ..] )
7066 . into_owned ( ) ;
7167 let res = re_rewrite_root. replace_all ( & res, & [ ] [ ..] ) . into_owned ( ) ;
7268 let res = re_fix_root_path
You can’t perform that action at this time.
0 commit comments