beber pushed a commit to branch master.

http://git.enlightenment.org/website/git.git/commit/?id=e6ba2089d5337ab83755c234f42ee7b9a5274b5f

commit e6ba2089d5337ab83755c234f42ee7b9a5274b5f
Author: Bertrand Jacquin <[email protected]>
Date:   Sat Jun 7 15:05:19 2014 +0200

    MEDIUM: filters/commit-filter: Add href around links, but not for phab
    bug ID when already done
---
 public_html/filters/commit-filter | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/public_html/filters/commit-filter 
b/public_html/filters/commit-filter
index 55e2a5c..362dfe7 100755
--- a/public_html/filters/commit-filter
+++ b/public_html/filters/commit-filter
@@ -17,5 +17,6 @@
 
 exec sed -r \
   -e '/CID\b/! s@\b([0-9a-fA-F]{7,40})\b@<a href="./?id=\1">\1</a>@g' \
-  -e 's@\b(D[0-9]+)\b@<a href="https://phab.enlightenment.org/\1";>\1</a>@g' \
-  -e 's@\b(T[0-9]+)\b@<a href="https://phab.enlightenment.org/\1";>\1</a>@g'
+  -e '/https:\/\/phab.enlightenment.org\/(D[0-9]+)\b/! 
s@\b(D[0-9]+)\b@https://phab.enlightenment.org/\1@g' \
+  -e '/https:\/\/phab.enlightenment.org\/(T[0-9]+)\b/! 
s@\b(T[0-9]+)\b@https://phab.enlightenment.org/\1@g' \
+  -e 's@\b(https://[^ ]+)@<a href="\1">\1</a>@g'

-- 


Reply via email to