Skip to content

Commit

Permalink
Fixed punctuation signs at the end of auto-generated link.
Browse files Browse the repository at this point in the history
  • Loading branch information
bezumkin committed Mar 25, 2019
1 parent d1978eb commit 97f3284
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Jevix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 97f3284

Please sign in to comment.