Merge branch 'main' into patch-1

This commit is contained in:
Xuanwo 2024-06-28 23:57:51 +08:00 committed by GitHub
commit 2c1247d981
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1225 additions and 1208 deletions

2429
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 { for line in lines {
if within_content { if within_content {
fixed_lines.push(line.replace(" - ", " ")); fixed_lines.push(line.replace(" ", " - "));
} else { } else {
if line.starts_with("## Applications") { if line.starts_with("## Applications") {
within_content = true; within_content = true;

View file

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