@@ -231,7 +231,7 @@ isEqual("/foo bar", "/foo%20bar", { encoding: true }); // false
231
231
232
232
### ` isNonEmptyURL(url) `
233
233
234
- Checks if the input URL is not empty nor ` / ` .
234
+ Checks if the input URL is neither empty nor ` / ` .
235
235
236
236
### ` isRelative(inputString) `
237
237
@@ -245,7 +245,7 @@ isRelative("./foo"); // true
245
245
246
246
### ` isSamePath(p1, p2) `
247
247
248
- Check two paths are equal or not. Trailing slash and encoding are normalized before comparison.
248
+ Check if two paths are equal or not. Trailing slash and encoding are normalized before comparison.
249
249
250
250
** Example:**
251
251
@@ -306,9 +306,9 @@ resolveURL("http://foo.com/foo?test=123#token", "bar", "baz");
306
306
307
307
### ` withBase(input, base) `
308
308
309
- Ensures the URL or pathname has a trailing slash .
309
+ Ensures the URL or pathname starts with base .
310
310
311
- If input aleady start with base, it will not be added again.
311
+ If input aleady starts with base, it will not be added again.
312
312
313
313
### ` withFragment(input, hash) `
314
314
@@ -390,7 +390,7 @@ withoutProtocol("http://example.com"); // "example.com"
390
390
391
391
### ` withoutTrailingSlash(input, respectQueryAndFragment?) `
392
392
393
- Removes trailing slash from the URL or pathname.
393
+ Removes the trailing slash from the URL or pathname.
394
394
395
395
If second argument is ` true ` , it will only remove the trailing slash if it's not part of the query or fragment with cost of more expensive operations.
396
396
@@ -426,7 +426,7 @@ withQuery("/foo?page=a", { token: "secret" }); // "/foo?page=a&token=secret"
426
426
427
427
Ensures the URL ends with a trailing slash.
428
428
429
- If seccond argument is ` true ` , it will only add the trailing slash if it's not part of the query or fragment with cost of more expensive operation.
429
+ If second argument is ` true ` , it will only add the trailing slash if it's not part of the query or fragment with cost of more expensive operation.
430
430
431
431
** Example:**
432
432
0 commit comments