diff --git a/crates/util/src/paths.rs b/crates/util/src/paths.rs index 6bbc1f212e98eb96ee20ef2c5622fd00bf899918..97740fb75c8634675c0a4a780c957e48d09fbc2d 100644 --- a/crates/util/src/paths.rs +++ b/crates/util/src/paths.rs @@ -205,23 +205,27 @@ impl
PathLikeWithPosition
{
column: None,
})
} else {
- let maybe_col_str =
- if maybe_col_str.ends_with(FILE_ROW_COLUMN_DELIMITER) {
- &maybe_col_str[..maybe_col_str.len() - 1]
- } else {
- maybe_col_str
- };
+ let (maybe_col_str, _) =
+ maybe_col_str.split_once(':').unwrap_or((maybe_col_str, ""));
match maybe_col_str.parse::