Changeset 12929


Ignore:
Timestamp:
Sep 27, 2011, 4:44:35 PM (10 years ago)
Author:
jordan
Message:

#4521 '(web) Make urls in comments clickable' -- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/inspector.js

    r12878 r12929  
    130130        setInnerHTML(e.hash, hash || na);
    131131        setInnerHTML(e.secure, secure || na);
    132         setInnerHTML(e.comment, comment || na);
     132        setInnerHTML(e.comment, comment.replace(/(https?|ftp):\/\/([\w\-]+(\.[\w\-]+)*(\.[a-z]{2,4})?)(\d{1,5})?(\/([^<>\s]*))?/g, '<a target="_blank" href="$&">$&</a>') || na);
    133133        setInnerHTML(e.creator, creator || na);
    134134        setInnerHTML(e.date, date || na);
Note: See TracChangeset for help on using the changeset viewer.