feat: Add path-only URI support
This commit is contained in:
@ -90,6 +90,11 @@ parse_uri() {
|
||||
if [[ "$uri" =~ :~/ ]]; then
|
||||
path="~${path}"
|
||||
fi
|
||||
elif [[ "$scheme" == "$uri" ]] && [[ "$uri" =~ ^[./] ]]; then
|
||||
# For URI with only Path component.
|
||||
# Examples: /path ./path ../path ../../path
|
||||
path="$uri"
|
||||
scheme='file'
|
||||
else
|
||||
# For non authority component URI
|
||||
path="$(<<< "$uri" sed "s/${scheme}://g")" || true
|
||||
|
Reference in New Issue
Block a user