From 97f3284f24ca6809806b171fe279d64410b42c24 Mon Sep 17 00:00:00 2001 From: Vasily Naumkin Date: Mon, 25 Mar 2019 19:03:26 +0700 Subject: [PATCH] Fixed punctuation signs at the end of auto-generated link. --- src/Jevix.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Jevix.php b/src/Jevix.php index 1005ac1..ab4c083 100644 --- a/src/Jevix.php +++ b/src/Jevix.php @@ -781,7 +781,7 @@ public function parse($text, &$errors) $this->skipSpaces(); $this->anyThing($content); $errors = $this->errors; - + if (!empty($this->autoReplace)){ $content = str_ireplace($this->autoReplace['from'], $this->autoReplace['to'], $content); } @@ -2116,8 +2116,6 @@ protected function url(&$url, &$href) } $href = 'http://' . $url; - - return true; } elseif ($this->matchStr('https://')) { while ($this->curChClass & $urlChMask) { $url .= $this->curCh; @@ -2131,8 +2129,6 @@ protected function url(&$url, &$href) } $href = 'https://' . $url; - - return true; } elseif ($this->matchStr('www.')) { while ($this->curChClass & $urlChMask) { $url .= $this->curCh;