-
Notifications
You must be signed in to change notification settings - Fork 2.3k
controller.hears not matching regular expressions correctly #80
Comments
@markstickley I think you have to escape the escape character like: 'set volume (\\d+)' |
Oh that’s makes sense yes. Because it’s a string and not a regexp like Thanks! I’ll give it a try.
|
OK well that certainly now seems to match as per the regex. However there still doesn't seem to be a |
@markstickley are you sure you are using version 0.0.5? |
Ah! Well now you mention it, no I'm not! Did that come out recently? Sorry about that, I'll update and try again :)
|
Using this code:
I get this output:
There is no
match
property on message, just the text which I suppose does mean that the regex matched even if it didn't parse the brackets.However if the regex is
'set volume (\d+)'
matching the same text doesn't work (which I think it should).Am I doing something wrong here?
Thanks!
The text was updated successfully, but these errors were encountered: