提交 7a6c9d5b 编写于 作者: K kohsuke

handle cases like [foo]http://bar/[/foo] or <foo>http://bar/</foo>.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30281 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a101330e
......@@ -42,7 +42,7 @@ public class UrlAnnotator extends ConsoleAnnotatorFactory<Object> {
*/
private static final Pattern URL = Pattern.compile("\\b(http|https|ftp)://[^\\s<>]+[^\\s<>,:\"'()\\[\\]=]");
private static final String OPEN = "'\"([<";
private static final String CLOSE= "'\")]>";
private static final String OPEN = "'\"()[]<>";
private static final String CLOSE= "'\")(][><";
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册