fixed for regex change on mavericks