Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit e93134b

Browse files
committed
improve regexp to not treat single : as links, fixes #13
1 parent c3a756f commit e93134b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function adjustString($s)
103103
}
104104

105105
return preg_replace_callback(
106-
'/(?<!mailto|tel):\w*/',
106+
'/(?<!mailto|tel):\w+/',
107107
function ($matches) {
108108
return '{' . mb_substr($matches[0], 1) . '}';
109109
},

0 commit comments

Comments
 (0)