Changeset 2375
- Timestamp:
- 03/28/2008 05:31:41 PM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/text.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/text.php
r2373 r2375 245 245 246 246 // Find all naked www.links.com (without http://) 247 if (preg_match_all('~\b(?<!://)www \.[a-z][-a-z0-9]*+\.[a-z]{2,6}\b~i', $text, $matches))247 if (preg_match_all('~\b(?<!://)www(?:\.[a-z0-9][-a-z0-9]*+)+\.[a-z]{2,6}\b~i', $text, $matches)) 248 248 { 249 249 foreach ($matches[0] as $match)
