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

Commit b363483

Browse files
Merge pull request #337 from github-for-unity/fixes/334-regex-compilation-bleh
Release 0.21.1: Removing regex expressions that crash Unity
2 parents 802277b + de49b59 commit b363483

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ class Utility : ScriptableObject
1414
private static readonly ILogging logger = Logging.GetLogger<Utility>();
1515

1616
public const string StatusRenameDivider = "->";
17-
public static readonly Regex ListBranchesRegex =
18-
new Regex(@"^(?<active>\*)?\s+(?<name>[\w\d\/\-_]+)\s*(?:[a-z|0-9]{7} \[(?<tracking>[\w\d\/\-\_]+)\])?");
19-
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)\)");
2117
public static readonly Regex LogCommitRegex = new Regex(@"commit\s(\S+)");
2218
public static readonly Regex LogMergeRegex = new Regex(@"Merge:\s+(\S+)\s+(\S+)");
2319
public static readonly Regex LogAuthorRegex = new Regex(@"Author:\s+(.+)\s<(.+)>");

0 commit comments

Comments
 (0)