复数z=(m-2)+(m+1)i(i为虚数单位,m∈R)是纯虚数,则|z-1|=______.