L
L
lgick2014-02-17 23:48:52
Socket.io
lgick, 2014-02-17 23:48:52

Socket.io and regular expressions: how?

I pass regExp over web sockets (socket.io) in this way:

socket.emit('xxx',  {regExp: /^[a-zA-Z]([\w\s#]{0,13})[\w]{1}$/});


On the client I receive an empty object.
Why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question