hash_util: Rename _uri functions to _url.

It's 2022 and the WHATWG no longer recognizes the term URI. Everything
is now a URL or a type of URL. Which is great because it's way less
confusing. Details here:
https://url.spec.whatwg.org/
This commit is contained in:
Austin Riba
2022-03-01 10:14:26 -08:00
committed by Tim Abbott
parent b39d47995d
commit b22578f975
27 changed files with 59 additions and 59 deletions

View File

@@ -39,11 +39,11 @@ export function encode_stream_id(stream_id, maybe_get_stream_name) {
return encodeHashComponent(slug);
}
export function by_stream_uri(stream_id, maybe_get_stream_name) {
export function by_stream_url(stream_id, maybe_get_stream_name) {
return "#narrow/stream/" + encode_stream_id(stream_id, maybe_get_stream_name);
}
export function by_stream_topic_uri(stream_id, topic, maybe_get_stream_name) {
export function by_stream_topic_url(stream_id, topic, maybe_get_stream_name) {
return (
"#narrow/stream/" +
encode_stream_id(stream_id, maybe_get_stream_name) +