fix script regexp