Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 8, 2024
1 parent 5e29db9 commit 0ff3c48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ async function handleTextHtml(state, url, response) {
const message = new VFileMessage(
'Unexpected hash in URL `' +
url.href +
'` that redirects with `meta[http-equiv=refresh] to `' +
'` that redirects with `meta[http-equiv=refresh]` to `' +
redirect.href +
'` losing the hash, remove the hash from the original URL',
{
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ But it looks dead.
### `lost-hash-with-meta-http-equiv`
```txt
Unexpected hash in URL `$url` that redirects with `meta[http-equiv=refresh] to `$url` losing the hash, remove the hash from the original URL
Unexpected hash in URL `$url` that redirects with `meta[http-equiv=refresh]` to `$url` losing the hash, remove the hash from the original URL
```
This warning is used when a URL with an anchor gets an HTML redirect,
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ test('deadOrAlive (mocked)', async function (t) {
const message = result.messages[0]
assert.equal(
message.reason,
'Unexpected hash in URL `https://example.com/#hi` that redirects with `meta[http-equiv=refresh] to `https://example.com/to/` losing the hash, remove the hash from the original URL'
'Unexpected hash in URL `https://example.com/#hi` that redirects with `meta[http-equiv=refresh]` to `https://example.com/to/` losing the hash, remove the hash from the original URL'
)
assert.equal(message.ruleId, 'lost-hash-with-meta-http-equiv')
assert.equal(message.source, 'dead-or-alive')
Expand Down

0 comments on commit 0ff3c48

Please sign in to comment.