We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be great to have flexible ways to listen for events, however the emit should be individual as it is.
emit
var test = happens(); test.on(/^he/m, function(){ console.log('starting regex ok'); }); test.on(/lo$/m, function(){ console.log('ending regex ok'); }); test.on(/ll/, function(){ console.log('middle regex ok'); }); test.on('he*', function(){ console.log('starting wildcard ok'); }); test.on('*lo', function(){ console.log('ending wildcard ok'); }); test.on('*ll*', function(){ console.log('middle wildcard ok'); }); test.emit('hello');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It'd be great to have flexible ways to listen for events, however the
emit
should be individual as it is.The text was updated successfully, but these errors were encountered: