Improved location rule matching for 'post_format'

Signed-off-by: Elliot Condon <e@elliotcondon.com>