Browse files

Merge pull request #220 from sunny-lan-coder/patch-1

Make wildcard info clearer in README
  • Loading branch information...
2 parents 10e3dd9 + e2b9ae9 commit 5d62dc76d89845e52999d8bc943e29cb3171b5f7 @RangerMauve RangerMauve committed on GitHub Jul 17, 2017
Showing with 4 additions and 0 deletions.
  1. +4 −0
@@ -117,6 +117,10 @@ subsequent emits such as the following would be observed...
emitter.emit(['foo', 'bar']);
+**NOTE:** An event name may use more than one wildcard. For example,
+`foo.*.bar.*` is a valid event name, and would match events such as
+``, or `['foo', 'bazz', 'bar', 'test']`
# Multi-level Wildcards
A double wildcard (the string `**`) matches any number of levels (zero or more) of events. So if for example `'foo.**'` is passed to the `on` method, the following events would be observed:

0 comments on commit 5d62dc7

Please sign in to comment.