arunma / AkkaNotes_Messaging

Project accompanying Akka Notes - Part 1 (Fire and forget Messaging)
http://rerun.me/2014/09/19/akka-notes-actor-messaging-1/
Apache License 2.0
26 stars 26 forks source link

Glob pattern used instead of regular expression #1

Open janvanmansum opened 8 years ago

janvanmansum commented 8 years ago

At this line you are using the pattern QuoteResponse*. You probably intended QuoteResponse.*. QuoteResponse* means QuoteRespons followed by e zero or more times. If EventFilter.info took a glob pattern it would have the intended meaning, but since it takes a regex the pattern should be QuoteResponse.*

Great examples, by the way. Thanks!

janvanmansum commented 8 years ago

Actually, come to think of if, the .* doesn't even serve any purpose in this case; the pattern QuoteResponse will suffice.