gitbutler/packages/tauri
Nikita Galaiko bbeadd0c8d fix: improve parsing of ownership ranges in FileOwnership struct
The parsing logic for ownership ranges in the `FileOwnership` struct has been improved. Previously, it split the input string by ':' and then by ',' to extract the file path and ranges. However, this approach had issues with file paths containing ':' characters. 

The updated logic now iterates over the parts of the input string in reverse order. If a part can be parsed as a `Hunk` (range), it is added to the `ranges` vector. Otherwise, it is considered as part of the file path and added to the `file_path_parts` vector. Finally, the `file_path_parts` vector is joined with ':' to form the file path.

This change ensures that file paths containing ':' characters are correctly parsed, allowing for more flexible and accurate parsing of ownership ranges.
2023-09-26 14:18:40 +02:00
..
icons new structure 2023-09-06 11:47:35 +02:00
src fix: improve parsing of ownership ranges in FileOwnership struct 2023-09-26 14:18:40 +02:00
build.rs new structure 2023-09-06 11:47:35 +02:00
Cargo.toml explicitly define git url 2023-09-20 15:56:48 +02:00
tauri.conf.json build debs 2023-09-07 17:29:27 +02:00
tauri.conf.nightly.json new structure 2023-09-06 11:47:35 +02:00
tauri.conf.release.json new structure 2023-09-06 11:47:35 +02:00