Skip to content

Commit 6298148

Browse files
committed
Detect empty messages
1 parent 0203ee9 commit 6298148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl TryFrom<&Vec<JsonValue>> for PocsagMessage {
1616
fn try_from(value: &Vec<JsonValue>) -> std::result::Result<Self, Self::Error> {
1717
lazy_static! {
1818
static ref RE: Regex =
19-
Regex::new("Received Message.+addr:\\s+(\\d+).+data:\\s+\"(.+)\".+").unwrap();
19+
Regex::new("Received Message.+addr:\\s+(\\d+).+data:\\s+\"(.*)\".+").unwrap();
2020
}
2121

2222
let text = &value[1];

0 commit comments

Comments
 (0)