Web.URI: [RFC] Need a function to determine if a URL is absolute or relative
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 587
- Forks
- 64
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 1
Description
あと、相対パスなんですけど、
<a href="xxx"> これの xxx を渡せることを期待してたんですが、xxx が絶対 URL だとうまく動かない…
xxx が絶対 URI か相対 URI かを判断して .relative() を使うしかないかな
.is_uri() があるけど、絶対 URI も相対 URI も URI であることに変わりはないので、絶対 URI かどうかを判断する関数があると便利
http://lingr.com/room/vim/archives/2016/01/31#message-23002036
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Web.URI implementation and reading the existing is_uri() and relative() behavior, then review the linked discussion for the intended distinction. Done means the API can reliably determine whether a supplied URI is absolute or relative and supports the reported absolute-URL case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100