ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1406361 - /ant/site/xooki/xooki.js
Date Tue, 06 Nov 2012 22:00:14 GMT
Author: maartenc
Date: Tue Nov  6 22:00:13 2012
New Revision: 1406361

URL: http://svn.apache.org/viewvc?rev=1406361&view=rev
Log:
Improved hyperlink generation for URL's.

Modified:
    ant/site/xooki/xooki.js

Modified: ant/site/xooki/xooki.js
URL: http://svn.apache.org/viewvc/ant/site/xooki/xooki.js?rev=1406361&r1=1406360&r2=1406361&view=diff
==============================================================================
--- ant/site/xooki/xooki.js (original)
+++ ant/site/xooki/xooki.js Tue Nov  6 22:00:13 2012
@@ -704,7 +704,7 @@ xooki.input = {
     filters: {
         url: function (input) {
             // handle urls
-            return input.replace(new RegExp("(?:file|http|https|mailto|ftp):[^\\s'\"]+(?:/|\\b)",
"g"), function (str, offset, s) {
+            return input.replace(new RegExp("(?:file|http|https|mailto|ftp):[^\\s'\"<]+(?:/|\\b)",
"g"), function (str, offset, s) {
                 var before = s.substring(0,offset);
                 if (before.match(/(href|src)="$/)) {
                     return str;



Mime
View raw message