From 302a065436bda21a37f2a6a3b81d5386696173de Mon Sep 17 00:00:00 2001 From: Motalleb Fallahnezhad Date: Sat, 20 Apr 2024 21:03:12 +0330 Subject: [PATCH] Fix: possible issue with `.git` in middle of the url? --- action.nu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.nu b/action.nu index 4a25f8a..8b2daae 100644 --- a/action.nu +++ b/action.nu @@ -133,8 +133,7 @@ export module plugin-list { def "get-toml" [ branch: string # branch name (e.g. main) ]: string -> record { - let git_repo = ($in | str replace ".git" "") # github repository url (e.g. https://github.com/FMotalleb/nu_plugin_port_scan) - + let git_repo = ($in | str replace --regex ".git$" "") # github repository url (e.g. https://github.com/FMotalleb/nu_plugin_port_scan) let toml_file_address: string = (get-raw-toml-address $git_repo $branch | url join) try { return (http get --raw $toml_file_address | from toml)