root/lang/perl/mobirc/trunk/mobirc/lib/Mobirc/HTTPD/Filter/MailAddress.pm
@
916
| Revision 916, 257 bytes (checked in by tokuhirom, 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | package Mobirc::HTTPD::Filter::MailAddress; |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | |
| 5 | sub process { |
| 6 | my ( $class, $text, $conf ) = @_; |
| 7 | |
| 8 | $text =~ s!\b(\w[\w.+=-]+\@[\w.-]+[\w]\.[\w]{2,4})\b!<a href="mailto:$1" class="mail_address">$1</a>!g; |
| 9 | |
| 10 | return $text; |
| 11 | } |
| 12 | |
| 13 | 1; |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)