update _.regex from _.regex(str) to _.regex(str, flags), update client build