Replaced .search() with .test()