Skip to content

Commit

Permalink
fix: cargo test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Aug 29, 2024
1 parent c1afb74 commit af53bd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/gitbutler-tauri/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ pub fn handle_event<R: Runtime>(event: &WindowMenuEvent<R>) {
'open_link: {
let result = match event.menu_item_id() {
"help/documentation" => open::open_url("https://docs.gitbutler.com"),
"help/github" => {
open::open_url("https://github.com/gitbutlerapp/gitbutler")
}
"help/github" => open::open_url("https://github.com/gitbutlerapp/gitbutler"),
"help/release-notes" => open::open_url(
"https://discord.com/channels/1060193121130000425/1183737922785116161",
),
Expand Down
2 changes: 1 addition & 1 deletion crates/gitbutler-tauri/src/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tracing::instrument;

pub fn open_that(path: &str) -> Result<(), Error> {
let re = Regex::new(r"^((https://)|(http://)|(mailto:)|(vscode://)|(vscodium://)).+").unwrap();
if !re.is_match(&path) {
if !re.is_match(path) {
return Err(anyhow!("Invalid path format").into());
}

Expand Down

0 comments on commit af53bd0

Please sign in to comment.