Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Uncaught SyntaxError: Invalid regular expression: /c++/: Nothing to repeat...

on query(['remote','c++'])




I love how I'm doing support on this!

query(['remote',/c\+\+/])

The lack of quotes in the above example is 100% intentional ... copy and paste that exactly ... (js is kinda weird sometimes).

If you are really interested (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) will tell you more about it.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: