Do not count line length for URL

previous patch used array for preg_match which was not correct.
Implement same fix with a single regex