From 84fccb62b542f73813da441cffcaaa278a643c1b Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Fri, 27 Nov 2015 23:09:53 +0100 Subject: [PATCH] relax regex and use negative lookbehind to leave mailto: and tel: links, fix tests --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 7e76a82..326d1f1 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -80,7 +80,7 @@ private function adjustString($s) } return preg_replace_callback( - '/(<[^>]*>(*SKIP)(*FAIL)|:\w*)/', + '/(?