Skip to content

Commit

Permalink
chore: minor fixes (#58)
Browse files Browse the repository at this point in the history
fix: broken contrib link
chore: pre-commit up
feat: more chars to replace in lib.rs

---------

Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>
  • Loading branch information
andreacfromtheapp authored Oct 10, 2024
1 parent d611c0e commit 533c81a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -14,12 +14,12 @@ repos:
args: [--autofix, --no-sort-keys]

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
rev: v0.14.0
hooks:
- id: markdownlint-cli2

- repo: https://github.com/opensource-nepal/commitlint
rev: v1.2.0
rev: v1.3.0
hooks:
- id: commitlint

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,5 @@ Extract with `unzip your_project.xrns` first. Once unzipped, you will find a
## Contributing

Thanks for your help improving the project! :balloon: Happy to have you! Peruse
the [contributing guide](./.github/CONTRIBUTING.md) to help you get involved in
the [contributing guide](./docs/CONTRIBUTING.md) to help you get involved in
the project.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ pub struct Args {
pub fn set_filename(song_title: &str) -> String {
let credits_file: String = format!(
"{}-credits.md",
song_title.replace(&[' ', '\''][..], "-").to_lowercase()
song_title
.replace(
&['/', '\\', '(', ')', '[', ']', '<', '>', '{', '}', ' ', '\'', '"', '?', '!'][..],
"-"
)
.to_lowercase()
);
credits_file
}
Expand Down

0 comments on commit 533c81a

Please sign in to comment.