aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Parsing/ParserMode/Emaillink.php
blob: c4b7e355a1b0615b7fcceb2d9183d652b18469e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace dokuwiki\Parsing\ParserMode;

class Emaillink extends AbstractMode
{
    /** @inheritdoc */
    public function connectTo($mode)
    {
        // pattern below is defined in inc/mail.php
        $this->Lexer->addSpecialPattern('<' . PREG_PATTERN_VALID_EMAIL . '>', $mode, 'emaillink');
    }

    /** @inheritdoc */
    public function getSort()
    {
        return 340;
    }
}