Add uri.normalizeLbryUri()
This commit is contained in:
parent
839e629362
commit
af32951d1f
1 changed files with 6 additions and 0 deletions
|
@ -115,4 +115,10 @@ uri.buildLbryUri = function(uriObj, includeProto=true) {
|
|||
(path ? `/${path}` : '');
|
||||
}
|
||||
|
||||
/* Takes a parseable LBRY URI and converts it to standard, canonical format (currently this just
|
||||
* consists of making sure it has a lbry:// prefix) */
|
||||
uri.normalizeLbryUri = function(lbryUri) {
|
||||
return uri.buildLbryUri(uri.parseLbryUri(lbryUri));
|
||||
}
|
||||
|
||||
export default uri;
|
||||
|
|
Loading…
Reference in a new issue