only patch regex on android [skip ci]