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