結果 : regex test is not a function javascript