mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2024-11-22 03:43:03 +00:00
Use the easier to type dash for name separation
This commit is contained in:
parent
bbe727ebb3
commit
d9cbf838b9
3 changed files with 1218 additions and 1218 deletions
|
@ -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;
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue