joomla/joomla-cms — pull request #5154 by okonomiyaki3000 (2014-11-21 05:42:58+00:00)
Title: Do not use preg function here, it's way too slow.

Using `preg_match` here can be very very slow and sometimes even crash the page. Anyway, we don't need a regular expression for this simple task.