Skip to content

Commit

Permalink
remove unnecessary compilation of regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunderEX committed May 12, 2021
1 parent 1ec9261 commit b60f2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NTMinerNoDevFee/NoDevFee/NoDevFeeUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public KernelInfo() { }

// https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s08.html
private static readonly Regex poolRegex = new Regex(@"(?:-e?pool|--server|-s)\s+(?:[a-z][a-z0-9+\-.]*://)?([a-z0-9\-._~%]+|\[[a-f0-9:.]+\]):(\d+)",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
RegexOptions.IgnoreCase);
private static readonly List<KernelInfo> _kernelInfoes = new List<KernelInfo> {
new KernelInfo {
ProcessName = "EthDcrMiner64",
Expand Down

0 comments on commit b60f2f2

Please sign in to comment.