Fix regex for UDP broadcast and Readme typos

This commit is contained in:
mycognosist 2020-07-20 11:08:35 +01:00 committed by adria0.eth
parent afa748c08c
commit ddf2c5949b
2 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@
[![codecov](https://codecov.io/gh/Kuska-ssb/kuska-ssb/branch/master/graph/badge.svg)](https://codecov.io/gh/Kuska-ssb/kuska-ssb)
# kuska-ssb
Secure Scuttlebut library
Secure Scuttlebutt library
kuska means _together_ in [Runasimi](https://en.wikipedia.org/wiki/Quechuan_languages)
kuska is an implementation of decentralized social network [Secure Scuttlebut](https://scuttlebutt.nz/) written in rust, it does not aim to provide a user interface and the functionality implemented in some clients like [Patchwork](https://github.com/ssbc/patchwork), [Patchbay](https://github.com/ssbc/patchbay), but the full set of libraries to be able to develop applications for the secure scuttlebut network.
kuska is an implementation of decentralized social network [Secure Scuttlebutt](https://scuttlebutt.nz/) written in rust, it does not aim to provide a user interface and the functionality implemented in some clients like [Patchwork](https://github.com/ssbc/patchwork), [Patchbay](https://github.com/ssbc/patchbay), but the full set of libraries to be able to develop applications for the secure scuttlebut network.
kuska-ssb is the implementation of protocols involved in ssb (unless the the handhake and box stream that are in the [ssb-handshake repo](https://github.com/Kuska-ssb/kuska-handshake) ), detailed information about the protocol can be found in https://ssbc.github.io/scuttlebutt-protocol-guide/ and https://scuttlebot.io/apis/scuttlebot/ssb.html

View File

@ -153,7 +153,7 @@ async fn main() -> Result<()> {
println!("got broadcasted {}", msg);
let broadcast_regexp =
r"net:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+):([0-9]+)~shs:([0-9a-zA-Z=/]+)";
r"net:([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+):([0-9]+)~shs:([0-9a-zA-Z\+/]+)=";
let captures = Regex::new(broadcast_regexp)
.unwrap()
.captures(&msg)