fix backtrace common prefix detection false positive

This commit is contained in:
Robin Appelman 2025-05-26 19:02:32 +02:00
commit ba88701f5e

View file

@ -160,7 +160,9 @@ fn find_path_prefix_length<'a, I: Iterator<Item = &'a str>>(paths: I) -> usize {
for path in paths { for path in paths {
for pattern in patterns { for pattern in patterns {
if let Some(offset) = path.find(pattern) { if let Some(offset) = path.find(pattern) {
return offset + 1; if !path.contains("files_external/3rdparty") {
return offset + 1;
}
} }
} }
} }