File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/compile/rewrite/rules Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ len_zero = "allow"
106106let_and_return = " allow"
107107manual_flatten = " allow"
108108manual_range_contains = " allow"
109- manual_strip = " allow"
110109map_clone = " allow"
111110map_flatten = " allow"
112111map_identity = " allow"
Original file line number Diff line number Diff line change @@ -2780,12 +2780,13 @@ impl FilterRules {
27802780 value. to_string( )
27812781 }
27822782 } else if op == "endsWith" || op == "notEndsWith" {
2783- if value. starts_with( "%" ) {
2784- let without_wildcard = value[ 1 ..] . to_string( ) ;
2783+ if let Some ( without_wildcard) =
2784+ value. strip_prefix( "%" )
2785+ {
27852786 if without_wildcard. contains( "%" ) {
27862787 continue ;
27872788 }
2788- without_wildcard
2789+ without_wildcard. to_string ( )
27892790 } else {
27902791 value. to_string( )
27912792 }
You can’t perform that action at this time.
0 commit comments