1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2025-01-24 13:56:52 +02:00

Merge pull request #1755 from palfrey/swap-dash

Use the easier to type dash for name separation
This commit is contained in:
Tom Parker-Shemilt 2024-06-27 21:21:24 +01:00 committed by GitHub
commit 65c5c9b9b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1217 additions and 1217 deletions

2430
README.md

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@ fn fix_dashes(lines: Vec<String>) -> Vec<String> {
for line in lines {
if within_content {
fixed_lines.push(line.replace(" - ", " "));
fixed_lines.push(line.replace(" ", " - "));
} else {
if line.starts_with("## Applications") {
within_content = true;

View File

@ -175,7 +175,7 @@ lazy_static! {
static ref CRATE_REGEX: Regex =
Regex::new(r"https://crates.io/crates/(?P<crate>[^/]+)/?$").unwrap();
static ref ITEM_REGEX: Regex =
Regex::new(r"(?P<repo>(\S+)(/\S+)?)(?P<crate> \[\S*\])? (?P<desc>\S.+)").unwrap();
Regex::new(r"(?P<repo>(\S+)(/\S+)?)(?P<crate> \[\S*\])? - (?P<desc>\S.+)").unwrap();
}
#[derive(Deserialize, Debug)]