Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port root before_v0.60/*.nu scripts (issue #221) #837

Merged
merged 7 commits into from
May 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: make_readme_table.nu
- add `--all` to replace all occcurencies
- `\\` -> '\'. No need to escape backslash in single qoutes
  • Loading branch information
39555 committed May 13, 2024
commit 9dd0319a731ed007e548d0b17b88a7a6af5eb745
2 changes: 1 addition & 1 deletion modules/make_readme_table.nu
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let nu_table = ($nu_files |

# Let's fix the file now
let nu_table = ($nu_table | update File { |it|
let file_path = ($it.File | into string | str replace '\\' '/')
let file_path = ($it.File | into string | str replace '\' '/' --all)
let file_name = ($file_path | path basename)
$"[($file_name)](char lparen)./($file_path)(char rparen)"
})
Expand Down
Loading