Check if a path matches the prefix filter.
(&self, path: &str)
| 259 | |
| 260 | /// Check if a path matches the prefix filter. |
| 261 | pub fn matches_prefix(&self, path: &str) -> bool { |
| 262 | if self.prefix.is_empty() { |
| 263 | true |
| 264 | } else { |
| 265 | path.starts_with(&self.prefix) |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | impl Default for DetectOptions { |
no test coverage detected