Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit d9e76f2

Browse files
Merge pull request #316 from github-for-unity/fixes/dot-net-46-regular-expressions
Fixing regular expressions to load in .Net 4.6
2 parents dbfc810 + a27dabd commit d9e76f2

File tree

1 file changed

+2
-2
lines changed
  • src/UnityExtension/Assets/Editor/GitHub.Unity/Misc

1 file changed

+2
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Utility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Utility : ScriptableObject
1515

1616
public const string StatusRenameDivider = "->";
1717
public static readonly Regex ListBranchesRegex =
18-
new Regex(@"^(?<active>\*)?\s+(?<name>[\w\d\/\-\_]+)\s*(?:[a-z|0-9]{7} \[(?<tracking>[\w\d\/\-\_]+)\])?");
18+
new Regex(@"^(?<active>\*)?\s+(?<name>[\w\d\/\-_]+)\s*(?:[a-z|0-9]{7} \[(?<tracking>[\w\d\/\-\_]+)\])?");
1919
public static readonly Regex ListRemotesRegex =
20-
new Regex(@"(?<name>[\w\d\-\_]+)\s+(?<url>https?:\/\/(?<login>(?<user>[\w\d]+)(?::(?<token>[\w\d]+))?)@(?<host>[\w\d\.\/\%]+))\s+\((?<function>fetch|push)\)");
20+
new Regex(@"(?<name>[\w\d\-_]+)\s+(?<url>https?:\/\/(?<login>(?<user>[\w\d]+)(?::(?<token>[\w\d]+))?)@(?<host>[\w\d\.\/\%]+))\s+\((?<function>fetch|push)\)");
2121
public static readonly Regex LogCommitRegex = new Regex(@"commit\s(\S+)");
2222
public static readonly Regex LogMergeRegex = new Regex(@"Merge:\s+(\S+)\s+(\S+)");
2323
public static readonly Regex LogAuthorRegex = new Regex(@"Author:\s+(.+)\s<(.+)>");

0 commit comments

Comments
 (0)