silverstripe/silverstripe-framework — pull request #3030 by ss23 (2014-04-14 04:00:35+00:00)
Title: MINOR Remove extraneous call to preg_match

preg_match/preg_quote isn't useful here as far as I can see, and is expensive enough to be worth removing it.

I wasn't sure about the change from === to ==, but I believe it should be fine since it's an array key, meaning integer or string anyway.
As far I can tell, the preg_match did the same thing as the === anyway.