Files
nvm/test/fast/Unit tests
Jordan Harband 26066c10f4 [Fix] prevent sed errors when pattern contains #
When `.nvmrc` or alias files contained comments (lines with `#`),
the `#` character could end up in the search pattern passed to sed,
causing "unterminated regular expression" errors because `#` is
used as the sed address delimiter.

This commit fixes the issue in two places:
1. `nvm_alias`: Strip comments from alias file contents before
   returning them, and trim trailing whitespace
2. `nvm_ls`: Escape `#` characters in SEARCH_PATTERN so they're
   treated as literal characters in the sed address

Fixes #3761
2026-01-19 22:58:43 -08:00
..
2024-10-31 14:23:36 -07:00
2018-02-26 01:01:30 +08:00
2018-03-06 04:38:01 +00:00
2018-02-26 01:01:30 +08:00
2018-03-06 04:38:01 +00:00
2021-03-11 13:06:41 -08:00
2023-10-23 14:53:39 -07:00