use regex triplet, add unit test
This commit is contained in:
1 parent
b313f62749
commit
e3b84499c2
2 files changed
+12
-1
No files matched your search
@@ -98,7 +98,7 @@ nvm_format_version() {
|
||||
}
|
||||
|
||||
nvm_strip_path() {
|
||||
echo "$1" | sed -e "s#$NVM_DIR/[^/]*$2[^:]*##g" | sed -e "s/::/:/g" | sed -e "s/:$//g"
|
||||
echo "$1" | sed -e "s#$NVM_DIR/[^/]*$2[^:]*:##g" -e "s#:$NVM_DIR/[^/]*$2[^:]*##g" -e "s#$NVM_DIR/[^/]*$2[^:]*##g"
|
||||
}
|
||||
|
||||
nvm_binary_available() {
|
||||
|
||||
Reference in new issue
Block a user