Fixed an issue where hash would not properly compare using regex and could cause a valid qrcode for something that did not appropriately match (credit to OverflowingInt)