diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-08-08 15:16:27 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-08-08 15:16:27 +0200 |
commit | b0d8f0f8c6e9586054f1a49a0201eb6ae15a3e0c (patch) | |
tree | 59273c8cce8f94851cc7c9bd8f859da6f1bc2363 | |
parent | a67ed25839e06520b2f4acc30cd44f66505071d1 (diff) | |
download | FlightCore-b0d8f0f8c6e9586054f1a49a0201eb6ae15a3e0c.tar.gz FlightCore-b0d8f0f8c6e9586054f1a49a0201eb6ae15a3e0c.zip |
fix: Fix typo in comment
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index ff3a09ed..a9826522 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -26,7 +26,7 @@ impl std::str::FromStr for ParsedThunderstoreModString { type Err = &'static str; // todo use an better error management fn from_str(s: &str) -> Result<Self, Self::Err> { - // Check whether Thunderstore string passse reges + // Check whether Thunderstore string passes regex let re = regex::Regex::new(r"^[a-zA-Z0-9_]+-[a-zA-Z0-9_]+-\d+\.\d+\.\d++$").unwrap(); if !re.is_match(s) { return Err("Incorrect format"); |