You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current regex to parse the statement and sequence numbers doesn't follow the swift specs as declared here.
The examples :28C:235/1 and :28C:235/1 provided in the spec will not match because the regex expects 5 digits for the statement and 3 to 5 digits for the sequence number. The sequence number should be optional and the regex should allow shorter statement and sequence numbers. I would suggest:
thanks for raising this. Could you put your suggestion in a PR with an additional test with these examples?
that would be amazing. If it does not break any of the other tests then we can merge and release this.
The current regex to parse the statement and sequence numbers doesn't follow the swift specs as declared here.
The examples
:28C:235/1
and:28C:235/1
provided in the spec will not match because the regex expects 5 digits for the statement and 3 to 5 digits for the sequence number. The sequence number should be optional and the regex should allow shorter statement and sequence numbers. I would suggest:/(?<statement_number>\d{1,5})(?:\/(?<sequence_number>\d{1,5}))?/
The text was updated successfully, but these errors were encountered: