dockerwiki/content/inc/Parsing/ParserMode/Emaillink.php

21 lines
394 B
PHP
Raw Normal View History

2021-10-26 13:02:53 +02:00
<?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;
}
}