The strpos() function is much faster than preg_match(), so we should use it since we are only checking if a string begins with another string.

Comments

cpliakas’s picture

Status: Active » Fixed

Resolved in commit f7ceafb.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1268060)