Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 14, 2024
1 parent 53be020 commit aa6d406
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ isEqual("/foo bar", "/foo%20bar", { encoding: true }); // false

### `isNonEmptyURL(url)`

Checks if the input URL is not empty nor `/`.
Checks if the input URL is neither empty nor `/`.

### `isRelative(inputString)`

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

### `isSamePath(p1, p2)`

Check two paths are equal or not. Trailing slash and encoding are normalized before comparison.
Check if two paths are equal or not. Trailing slash and encoding are normalized before comparison.

**Example:**

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

### `withBase(input, base)`

Ensures the URL or pathname has a trailing slash.
Ensures the URL or pathname starts with base.

If input aleady start with base, it will not be added again.
If input aleady starts with base, it will not be added again.

### `withFragment(input, hash)`

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

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

Removes trailing slash from the URL or pathname.
Removes the trailing slash from the URL or pathname.

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.

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

Ensures the URL ends with a trailing slash.

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

**Example:**

Expand Down

0 comments on commit aa6d406

Please sign in to comment.