fix location hash regex