結果 : javascript regex test is not a function