You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
397 B

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