Fixing format regex

Removing the last ```|``` causes some formats to be concatenated accidentally
Merge pull request #34 from ScottehMax/patch-1

Fixing format regex