Fix permalinks that contain a regexp
Merge pull request #5 from mathiasbynens/patch-2

Fix permalinks that contain a regexp