File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Plugins/Flow.Launcher.Plugin.PluginsManager Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
using Flow . Launcher . Infrastructure . UserSettings ;
3
3
using System ;
4
4
using System . Collections . Generic ;
5
- using System . Text ;
5
+ using System . Text . RegularExpressions ;
6
6
7
7
namespace Flow . Launcher . Plugin . PluginsManager
8
8
{
@@ -53,8 +53,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
53
53
{
54
54
// standard UrlSourceCode format in PluginsManifest's plugins.json file: https://github.com/jjw24/Flow.Launcher.Plugin.Putty/tree/master
55
55
var link = pluginManifestInfo . UrlSourceCode . StartsWith ( "https://github.com" )
56
- ? pluginManifestInfo . UrlSourceCode . Replace ( " /tree/master ", "/issues/new/choose" )
57
- : pluginManifestInfo . UrlSourceCode ;
56
+ ? Regex . Replace ( pluginManifestInfo . UrlSourceCode , @"\ /tree\/\w+$ ", "" ) + " /issues/new/choose"
57
+ : pluginManifestInfo . UrlSourceCode ;
58
58
59
59
Context . API . OpenUrl ( link ) ;
60
60
return true ;
You can’t perform that action at this time.
0 commit comments