commit | 2a8560c9c62c16a2f044f37bfd4adf152c191ee5 | [log] [tgz] |
---|---|---|
author | vlakoff <vlakoff@gmail.com> | Tue May 20 10:32:35 2014 +0200 |
committer | vlakoff <vlakoff@gmail.com> | Tue May 20 10:32:35 2014 +0200 |
tree | a9a0fadb67f0b4e99917e7a81e574f7a9ecb744c | |
parent | 9e9d86ba77b6aead9daec720bb1444841527e0c7 [diff] [blame] |
Regex fixes * Replace wrong "wwww." with "www." * Escape dot
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php index ca19ab9..7e15c19 100644 --- a/system/helpers/text_helper.php +++ b/system/helpers/text_helper.php
@@ -460,7 +460,7 @@ while (mb_strlen($line) > $charlim) { // If the over-length word is a URL we won't wrap it - if (preg_match('!\[url.+\]|://|wwww.!', $line)) + if (preg_match('!\[url.+\]|://|www\.!', $line)) { break; }