Fixed regex bug

js oneliner for array regex search