ssbc / ssb-ref

check if a string is a valid ssb-reference
MIT License
14 stars 10 forks source link

regex's are wrong #37

Closed mixmix closed 4 years ago

mixmix commented 4 years ago
var msgIdRegex = exports.msgIdRegex = isCanonicalBase64('%', '\.sha256', 32)

should be

var msgIdRegex = exports.msgIdRegex = isCanonicalBase64('%', '\\.sha256', 32)

Need to write tests around these!, basically something with suffix +sha256 at the moment will pass cc @christianbundy

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?