Fix hash not escaped in ignore regex