結果 : typescript check if string matches pattern