diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-10-13 14:51:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 14:51:50 +0200 |
commit | 1f3c3f070ac2cdbbad9a9c3a1614eecab14c0506 (patch) | |
tree | 97e8ea9c323bba8b018d78e2270794c5ab04f318 /src-tauri/src/main.rs | |
parent | 1b656b824b12c1d70b9ad5f2d01ad63db1667a3e (diff) | |
download | FlightCore-1f3c3f070ac2cdbbad9a9c3a1614eecab14c0506.tar.gz FlightCore-1f3c3f070ac2cdbbad9a9c3a1614eecab14c0506.zip |
refactor: Move `convert_release_candidate_number` (#629)
to `util` module
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 6553db99..09242680 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -193,15 +193,6 @@ fn main() { }; } -/// Helps with converting release candidate numbers which are different on Thunderstore -/// due to restrictions imposed by the platform -pub fn convert_release_candidate_number(version_number: String) -> String { - // This simply converts `-rc` to `0` - // Works as intended for RCs < 10, e.g. `v1.9.2-rc1` -> `v1.9.201` - // Doesn't work for larger numbers, e.g. `v1.9.2-rc11` -> `v1.9.2011` (should be `v1.9.211`) - version_number.replace("-rc", "0").replace("00", "") -} - /// Defines how Titanfall2 was installed (Steam, Origin, ...) #[derive(Serialize, Deserialize, Debug, Clone, TS)] #[ts(export)] |