lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [05/14] lucenenet git commit: Lucene.Net.Core.Util.Version: Changed .ToUpper(CultureInfo.InvariantCulture) > .ToUpperInvariant() (issue with .NET Core)
Date Thu, 02 Feb 2017 12:42:36 GMT
Lucene.Net.Core.Util.Version: Changed .ToUpper(CultureInfo.InvariantCulture) > .ToUpperInvariant()
(issue with .NET Core)


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/9525d45f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/9525d45f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/9525d45f

Branch: refs/heads/api-work
Commit: 9525d45f80a11617c6e478d362165fddaaa288e1
Parents: fc34ba7
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Feb 2 12:51:06 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Feb 2 18:30:31 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Version.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/9525d45f/src/Lucene.Net.Core/Util/Version.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Version.cs b/src/Lucene.Net.Core/Util/Version.cs
index 9a9c6f9..59b4ac2 100644
--- a/src/Lucene.Net.Core/Util/Version.cs
+++ b/src/Lucene.Net.Core/Util/Version.cs
@@ -166,7 +166,7 @@ namespace Lucene.Net.Util
 
         public static LuceneVersion ParseLeniently(string version)
         {
-            string parsedMatchVersion = version.ToUpper(CultureInfo.InvariantCulture);
+            string parsedMatchVersion = version.ToUpperInvariant();
             LuceneVersion result;
             Enum.TryParse(NumericVersion.Replace(parsedMatchVersion, "LUCENE_$1$2", 1), out
result);
             return result;


Mime
View raw message