-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
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
Changed header pattern #186
base: master
Are you sure you want to change the base?
Conversation
The regex currently includes a colon in the middle to address standard headers like the example you gave: ([^:\s]+)\s*:\s*([^:\s]+) |
Yes, and that is fine. The issue is the second group. Please see the following link, with the original regex and the body given in the example : regexr.com/5crbl. There you'll notice, that only the first word is recognized. What this PR does, is to capture the second group fully, by only terminating on a newline, instead of a colon. |
Ahh I understand. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build.gradle changes aren't necessary, but otherwise LGTM
1b803ac
to
9cb5e63
Compare
The PR now only includes the header change |
Can someone merge this and release a new version please? |
@NaikSoftware this issue is still present. Would you be so kind to review and merge this branch? |
According to the STOMP protocol specification 1.2; each header should be terminated with an EOL. Currently, the regex for headers stops if it sees a
:
. This pull request fixes the regex.An example of a message that the current implementation can't handle is shown below: