diff options
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 731d2ddea..01abf5876 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -457,8 +457,8 @@ class Doku_Handler { array($link[0],$link[1]), $pos ); - }elseif ( preg_match('#([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i',$link[0]) ) { - // E-Mail + }elseif ( preg_match('<'.PREG_PATTERN_VALID_EMAIL.'>',$link[0]) ) { + // E-Mail (pattern above is defined in inc/mail.php) $this->_addCall( 'emaillink', array($link[0],$link[1]), |