Skip to content

Commit aa6d406

Browse files
authoredNov 14, 2024··
chore: apply automated lint fixes
1 parent 53be020 commit aa6d406

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ isEqual("/foo bar", "/foo%20bar", { encoding: true }); // false
231231

232232
### `isNonEmptyURL(url)`
233233

234-
Checks if the input URL is not empty nor `/`.
234+
Checks if the input URL is neither empty nor `/`.
235235

236236
### `isRelative(inputString)`
237237

@@ -245,7 +245,7 @@ isRelative("./foo"); // true
245245

246246
### `isSamePath(p1, p2)`
247247

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.
249249

250250
**Example:**
251251

@@ -306,9 +306,9 @@ resolveURL("http://foo.com/foo?test=123#token", "bar", "baz");
306306

307307
### `withBase(input, base)`
308308

309-
Ensures the URL or pathname has a trailing slash.
309+
Ensures the URL or pathname starts with base.
310310

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.
312312

313313
### `withFragment(input, hash)`
314314

@@ -390,7 +390,7 @@ withoutProtocol("http://example.com"); // "example.com"
390390

391391
### `withoutTrailingSlash(input, respectQueryAndFragment?)`
392392

393-
Removes trailing slash from the URL or pathname.
393+
Removes the trailing slash from the URL or pathname.
394394

395395
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.
396396

@@ -426,7 +426,7 @@ withQuery("/foo?page=a", { token: "secret" }); // "/foo?page=a&token=secret"
426426

427427
Ensures the URL ends with a trailing slash.
428428

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.
430430

431431
**Example:**
432432

0 commit comments

Comments
 (0)
Please sign in to comment.