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

trim trailing whitespace in perlbrew_list #4

Open
shawnlaffan opened this issue Aug 30, 2024 · 0 comments
Open

trim trailing whitespace in perlbrew_list #4

shawnlaffan opened this issue Aug 30, 2024 · 0 comments

Comments

@shawnlaffan
Copy link

shawnlaffan commented Aug 30, 2024

perlbrew list on my local system returns values with trailing spaces. These need to be cleaned up or they later get in the way of setting the local lib, and probably other functions.

Assuming the minimum R version exceeds 3.2.0 this could also use the trimws() function here:

gsub(pattern = "^(\\*| ) ", replacement = "")

I can generate a PR if needed.

Edit: Actually, it probably needs to be in a couple of places to handle the active item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant