-
Notifications
You must be signed in to change notification settings - Fork 17
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
Whitespace between headers #6
Comments
I'm not sure about this one. Is there somewhere in the spec that says it's ok to have newlines in these locations and not others? Your suggested changes are simple enough, and making your suggested changes does indeed mean that you can parse a message with new lines in it, but I'm not clear on whether the mt103 message in question is valid with new lines in it, or that your suggested placements for new lines represents all the cases where this would be a problem. Do you have a spec I can reference for confirmation? I ask because the placement of the If this is valid:
Is this not?
Might it be better to just |
I don't have a specification to provide unfortunately. I initially was using
Both |
That's an oversight on my behalf. I would consider a message with trailing whitespace still valid (but have simply never seen one) |
Alright I've had a conversation with some more financially-minded (as opposed to software like me) -people and it looks like line breaks are common in a message, so I'm going to make this change. Do you perhaps have a few test messages I can use to ensure that everything works as-expected? All of the messages I have access to have no line breaks. |
The regular expression
MESSAGE_REGEX
does not allow whitespace (or newlines) between each header. For example, if the testMESSAGE_1
is defined as:It does not parse:
Redefining the regex to accept whitespace characters between headers:
solves the issue
The text was updated successfully, but these errors were encountered: