Normalize a pattern for representation comparison: strip a leading and a trailing slash so `.atomic` matches the anchored exclude line `/.atomic/`.
(pattern: &str)
| 141 | /// Normalize a pattern for representation comparison: strip a leading and a |
| 142 | /// trailing slash so `.atomic` matches the anchored exclude line `/.atomic/`. |
| 143 | fn normalize_pattern(pattern: &str) -> &str { |
| 144 | pattern |
| 145 | .strip_prefix('/') |
| 146 | .unwrap_or(pattern) |
| 147 | .strip_suffix('/') |
| 148 | .unwrap_or(pattern) |
| 149 | } |
| 150 | |
| 151 | /// Check ignore-policy parity without writing anything. |
| 152 | /// |
no outgoing calls
no test coverage detected