Merge pull request #2426 from rhodri/patch-1

Fix incorrect regex