Hacker News new | past | comments | ask | show | jobs | submit login

> Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.

Just because the API call and syntax is a bit iffy doesn't mean it's a bad pattern. ES6 will finally have a string .contains method btw (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: