lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [02/11] lucenenet git commit: JavaDocToMarkdownConverter: Fixed bugs in link regex
Date Thu, 14 Sep 2017 05:48:23 GMT
JavaDocToMarkdownConverter: Fixed bugs in link regex


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

Branch: refs/heads/master
Commit: 928f68d91934134bc587ecb8a78776da907f440c
Parents: eab9437
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Sep 14 12:19:47 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Sep 14 12:19:47 2017 +0700

----------------------------------------------------------------------
 .../JavaDocToMarkdownConverter/DocConverter.cs                     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/928f68d9/src/dotnet/tools/JavaDocToMarkdownConverter/JavaDocToMarkdownConverter/DocConverter.cs
----------------------------------------------------------------------
diff --git a/src/dotnet/tools/JavaDocToMarkdownConverter/JavaDocToMarkdownConverter/DocConverter.cs
b/src/dotnet/tools/JavaDocToMarkdownConverter/JavaDocToMarkdownConverter/DocConverter.cs
index 8d186e9..e60b225 100644
--- a/src/dotnet/tools/JavaDocToMarkdownConverter/JavaDocToMarkdownConverter/DocConverter.cs
+++ b/src/dotnet/tools/JavaDocToMarkdownConverter/JavaDocToMarkdownConverter/DocConverter.cs
@@ -10,7 +10,7 @@ namespace JavaDocToMarkdownConverter
 {
     public class DocConverter
     {
-        private static Regex LinkRegex = new Regex(@"{@link (?<cref>org\.apache\.lucene\.[^}
]*)\s?(?<text>[^}]*)}", RegexOptions.Compiled);
+        private static Regex LinkRegex = new Regex(@"{@link\s*?(?<cref>org\.apache\.lucene\.[^}]*)\s?(?<text>[^}]*)}",
RegexOptions.Compiled);
         private static Regex RepoLinkRegex = new Regex(@"(?<=\()(?<cref>src-html/[^)]*)",
RegexOptions.Compiled);
 
         private static Regex JavaCodeExtension = new Regex(@".java$", RegexOptions.Compiled);


Mime
View raw message