This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ struct AlephJsxFold {
47
47
impl AlephJsxFold {
48
48
fn new_inline_style_ident ( & mut self ) -> String {
49
49
let resolver = self . resolver . borrow ( ) ;
50
- self . inline_style_idx = self . inline_style_idx + 1 ;
51
50
let mut ident: String = "inline-style-" . to_owned ( ) ;
52
51
let mut hasher = Sha1 :: new ( ) ;
52
+ self . inline_style_idx = self . inline_style_idx + 1 ;
53
53
hasher. update ( resolver. specifier . clone ( ) ) ;
54
54
hasher. update ( self . inline_style_idx . to_string ( ) ) ;
55
55
ident. push_str (
56
56
base64:: encode ( hasher. finalize ( ) )
57
- . replace ( "/" , "" )
58
57
. replace ( "+" , "" )
59
- . as_str ( )
60
- . trim_end_matches ( '=' ) ,
58
+ . replace ( "/" , "" )
59
+ . replace ( "=" , "" )
60
+ . as_str ( ) ,
61
61
) ;
62
62
ident
63
63
}
Original file line number Diff line number Diff line change @@ -404,10 +404,10 @@ impl AlephResolveFold {
404
404
hasher. update ( callback_code. clone ( ) ) ;
405
405
ident. push_str (
406
406
base64:: encode ( hasher. finalize ( ) )
407
- . replace ( "/" , "" )
408
407
. replace ( "+" , "" )
409
- . as_str ( )
410
- . trim_end_matches ( '=' ) ,
408
+ . replace ( "/" , "" )
409
+ . replace ( "=" , "" )
410
+ . as_str ( ) ,
411
411
) ;
412
412
ident
413
413
}
You can’t perform that action at this time.
0 commit comments