Skip to content

Commit a8ae143

Browse files
authored
Merge branch 'master' into v6
2 parents be76dfd + 5ec080c commit a8ae143

File tree

3 files changed

+6
-35424
lines changed

3 files changed

+6
-35424
lines changed

DeviceDetector.NET/DeviceDetector.NET.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;Net462</TargetFrameworks>
55
<RootNamespace>DeviceDetectorNET</RootNamespace>
6-
<Version>4.3.1</Version>
6+
<Version>4.3.2</Version>
77
<Authors>totpero</Authors>
88
<PackageLicenseExpression></PackageLicenseExpression>
99
<Copyright>Copyright © www.totpe.ro</Copyright>
@@ -12,10 +12,10 @@
1212
<PackageProjectUrl>https://github.com/totpero/DeviceDetector.NET</PackageProjectUrl>
1313
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
15-
<AssemblyVersion>4.3.1.0</AssemblyVersion>
15+
<AssemblyVersion>4.3.2.0</AssemblyVersion>
1616
<RepositoryUrl>https://github.com/totpero/DeviceDetector.NET</RepositoryUrl>
1717
<SignAssembly>false</SignAssembly>
18-
<FileVersion>4.3.1.0</FileVersion>
18+
<FileVersion>4.3.2.0</FileVersion>
1919
</PropertyGroup>
2020

2121
<ItemGroup>

DeviceDetector.NET/RegexEngine/MSRegexCompiledEngine.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class MSRegexCompiledEngine : IRegexEngine
1515

1616
private Regex GetRegex(string pattern)
1717
{
18-
return _staticRegExCache.Value.GetOrAdd(pattern, new Regex(pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled));
18+
return _staticRegExCache.Value.GetOrAdd(pattern, (regexPattern) => new Regex(regexPattern, RegexOptions.IgnoreCase | RegexOptions.Compiled));
1919
}
2020

2121
public bool Match(string input, string pattern)
@@ -41,7 +41,7 @@ public IEnumerable<string> MatchesUniq(string input, string pattern)
4141
{
4242
if (!match.Value.Equals(group.Value))
4343
{
44-
yield return group.Value;
44+
yield return group.Value;
4545
}
4646
}
4747
}
@@ -52,4 +52,4 @@ public string Replace(string input, string pattern, string replacement)
5252
return GetRegex(pattern).Replace(input, replacement);
5353
}
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)