File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,17 @@ namespace SourceGit.Models
44{
55 public partial class Remote
66 {
7-
8- [ GeneratedRegex ( @"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-\.]+\.git$" ) ]
9- private static partial Regex regex1 ( ) ;
10-
7+ [ GeneratedRegex ( @"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-/]+/[\w\-\.]+\.git$" ) ]
8+ private static partial Regex REG_HTTPS ( ) ;
119 [ GeneratedRegex ( @"^[\w\-]+@[\w\.\-]+(\:[0-9]+)?:[\w\-]+/[\w\-\.]+\.git$" ) ]
12- private static partial Regex regex2 ( ) ;
10+ private static partial Regex REG_SSH1 ( ) ;
1311 [ GeneratedRegex ( @"^ssh://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-\.]+\.git$" ) ]
14- private static partial Regex regex3 ( ) ;
12+ private static partial Regex REG_SSH2 ( ) ;
1513
1614 private static readonly Regex [ ] URL_FORMATS = [
17- regex1 ( ) ,
18- regex2 ( ) ,
19- regex3 ( ) ,
15+ REG_HTTPS ( ) ,
16+ REG_SSH1 ( ) ,
17+ REG_SSH2 ( ) ,
2018 ] ;
2119
2220 public string Name { get ; set ; }
You can’t perform that action at this time.
0 commit comments