drneamati / klaxon

Automatically exported from code.google.com/p/klaxon
Apache License 2.0
0 stars 0 forks source link

message is not recognized as a page if its not a complete work in message body #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In SMS setting set a sender lets say we call it "notify"
2. Select also match message body in sms setting
3. Send sms with following in message body "notify123". 

If the word is not a complete word eg. notify123 in this case, the parser does 
not recognize it. on the other hand notify.123 etc. is recognized. On the other 
hand if pattern is specified in just the sender field, the sms gets consumed as 
a page fine like it should.

What is the expected output? What do you see instead?
Just like sender field, the app should be able to consume message as a page if 
word exists as a pattern in body instead of a complete word.

What version of the product are you using? On what operating system?
Android 2.1 on At&t aria

Original issue reported on code.google.com by ashish.s...@gmail.com on 13 Jul 2010 at 8:45

GoogleCodeExporter commented 9 years ago
The matching in both subject and body is done with String.contains(), so word 
boundaries should not have any effect. is it possible that there is a space at 
the end of your sender string?

--m.

Original comment by mun...@gmail.com on 13 Jul 2010 at 11:28

GoogleCodeExporter commented 9 years ago
I cant reproduce this issue, and will need more information to continue 
debugging.

Original comment by mun...@gmail.com on 1 Jul 2011 at 7:16