exact match replaced with regex search in mock js