xref: /dokuwiki/inc/Parsing/ParserMode/Emaillink.php (revision be906b566b9bdfd92c032ee07c4fd077d820a8d1)
1*be906b56SAndreas Gohr<?php
2*be906b56SAndreas Gohr
3*be906b56SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode;
4*be906b56SAndreas Gohr
5*be906b56SAndreas Gohrclass Emaillink extends AbstractMode
6*be906b56SAndreas Gohr{
7*be906b56SAndreas Gohr
8*be906b56SAndreas Gohr    /** @inheritdoc */
9*be906b56SAndreas Gohr    public function connectTo($mode)
10*be906b56SAndreas Gohr    {
11*be906b56SAndreas Gohr        // pattern below is defined in inc/mail.php
12*be906b56SAndreas Gohr        $this->Lexer->addSpecialPattern('<'.PREG_PATTERN_VALID_EMAIL.'>', $mode, 'emaillink');
13*be906b56SAndreas Gohr    }
14*be906b56SAndreas Gohr
15*be906b56SAndreas Gohr    /** @inheritdoc */
16*be906b56SAndreas Gohr    public function getSort()
17*be906b56SAndreas Gohr    {
18*be906b56SAndreas Gohr        return 340;
19*be906b56SAndreas Gohr    }
20*be906b56SAndreas Gohr}
21