File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export interface UriConfig {
2525 * Some example short-hand URIs (utilizing inference):
2626 * ipfs/QmHASH -> wrap://ipfs/QmHASH
2727 * https://domain.com -> wrap://https/domain.com
28- *
28+ *
2929 * URI inference is performed in the following ways:
3030 * 1. If wrap:// is missing, it will be added.
3131 * 2. If non-wrap schema exists, it becomes the authority.
@@ -128,10 +128,12 @@ export class Uri {
128128 "https://domain.com/path\n\n" ;
129129
130130 if ( ! input ) {
131- return ResultErr ( Error (
132- "The provided URI is empty, here are some examples of valid URIs:\n" +
133- validUriExamples
134- ) ) ;
131+ return ResultErr (
132+ Error (
133+ "The provided URI is empty, here are some examples of valid URIs:\n" +
134+ validUriExamples
135+ )
136+ ) ;
135137 }
136138
137139 let processedUri = input . trim ( ) ;
@@ -149,7 +151,8 @@ export class Uri {
149151 // Make sure the string before the scheme doesn't contain an authority
150152 if ( ! ( authorityIndex !== - 1 && schemeIndex > authorityIndex ) ) {
151153 processedUri =
152- processedUri . substring ( 0 , schemeIndex ) + "/" +
154+ processedUri . substring ( 0 , schemeIndex ) +
155+ "/" +
153156 processedUri . substring ( schemeIndex + schemeDelimiter . length ) ;
154157 }
155158 }
You can’t perform that action at this time.
0 commit comments