Skip to content

Commit

Permalink
Assembly location with special characters fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ky-one committed Jun 27, 2020
1 parent db94d37 commit 0476ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core.Common.Standard/KY.Core.Common.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>KY.Core</RootNamespace>
<AssemblyName>KY.Core.Common</AssemblyName>
<Version>4.11.0</Version>
<Version>4.11.1</Version>
<Authors>KY-Programming</Authors>
<Company>KY-Programmingp</Company>
<Product>KY.Core</Product>
Expand Down
2 changes: 1 addition & 1 deletion Core.Common.Standard/Nuget/NugetAssemblyLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private AssemblyInfo GetAssemblyInfoFromPath(string path, Version defaultVersion

private AssemblyInfo GetAssemblyInfoFromLongName(string name)
{
Regex regex = new Regex(@"(?<name>[\w.]+),\sVersion=(?<version>[\d.]+)(,\sCulture=(?<culture>[\w-]+),\sPublicKeyToken=(?<token>\w+))?");
Regex regex = new Regex(@"^(?<name>.+),\sVersion=(?<version>[\d.]+)(,\sCulture=(?<culture>[\w-]+),\sPublicKeyToken=(?<token>\w+))?");
Match match = regex.Match(name);
if (match.Success)
{
Expand Down

0 comments on commit 0476ae0

Please sign in to comment.