Open ben221199 opened 1 year ago
I don't think this was intended as a regexp.
I don't know, but I do know that not every multiaddr segment holds a value, so the second part should be optional if you interpret it as RegEx.
The expression you wrote down is incorrect, if interpreted as a regexp. It doesn't even match the example given in the line below.
Okay, it is isn't fully RegEx, but because of the ()
as "group" and the +
as "one or more", I thought the ?
as "optional" would make sense too.
This pull request updates the regular expression of multiaddr.