Open hapm opened 3 years ago
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.
I'll see if I come to that tomorrow.
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: