Fixed whitelist regex termination