by rip747 · 11y ago · 0 comments
weight = title.toLowerCase().indexOf("cat") < 0 ? 0 : 1000;
weight = 1000 if "cat" in title.lower() else 0