Skip to content

Commit e40825e

Browse files
committed
merge
1 parent 0a14ce3 commit e40825e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Autolink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function convert($text, $attribs = array())
7272
{
7373
$self = $this;
7474

75-
$regex = "/(([a-zA-Z]*=\")*(" . $this->getSchemes(true) . ")\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?)/";
75+
echo $regex = "/(([a-zA-Z]*=\")*(" . $this->getSchemes(true) . ")\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?)/";
7676

7777
return preg_replace_callback(
7878
$regex,

test/AutolinkTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function testConvert()
6464
<a href="http://example.com/path?foo[1]=a&foo[2]=b">http://example.com/path?foo[1]=a&foo[2]=b</a>
6565
<img src="http://example.com/path?foo[1]=a&foo[2]=b" width="100"/>
6666
<div data-target="http://example.com/path?foo[1]=a&foo[2]=b" wdith="100"/></div>
67+
<p>http://example.com/path?foo[1]=a&foo[2]=b</p>
6768
6869
TEXT;
6970

@@ -93,6 +94,7 @@ public function testConvert()
9394
<a href="http://example.com/path?foo[1]=a&foo[2]=b">http://example.com/path?foo[1]=a&foo[2]=b</a>
9495
<img src="http://example.com/path?foo[1]=a&foo[2]=b" width="100"/>
9596
<div data-target="http://example.com/path?foo[1]=a&foo[2]=b" wdith="100"/></div>
97+
<p>http://example.com/path?foo[1]=a&foo[2]=b</p>
9698
9799
HTML;
98100

0 commit comments

Comments
 (0)