Crates.io | collapse |
lib.rs | collapse |
version | 0.1.2 |
source | src |
created_at | 2022-11-01 17:15:54.462938 |
updated_at | 2022-11-20 15:03:47.83579 |
description | Trim and collapse consecutive whitespace to a single space |
homepage | |
repository | https://gitlab.com/ryanobeirne/collapse |
max_upload_size | |
id | 702943 |
size | 5,543 |
fn collapse(s: &str) -> String;
#[macro_use]
use collapse::*;
collapsed_eq!("two spaces", "two spaces");
collapsed_eq!("new\r\nlines", "new\nlines");
collapsed_eq!(" lead \t tail \r", "lead tail");