Unverified Commit 3405fb94 authored by Christopher Robert Van Wiemeersch's avatar Christopher Robert Van Wiemeersch Committed by GitHub

fix typo in `eslint-plugin-next` code comments (#15583)

(p.s. excited to use this package. thank you.)
parent 059741ea
......@@ -55,9 +55,9 @@ function parseUrlForPages(urlprefix, directory) {
}
/**
* Takes a url and does the following things.
* - replace `index.html` with `/`
* - Makes sure all URLs are have a trainiling `/`
* Takes a URL and does the following things.
* - Replaces `index.html` with `/`
* - Makes sure all URLs are have a trailing `/`
* - Removes query string
* @param {string} url
*/
......@@ -68,7 +68,7 @@ function normalizeURL(url) {
url = url.split('?')[0]
url = url.split('#')[0]
url = url = url.replace(/(\/index\.html)$/, '/')
// empty URLs should not be trailed with `/`, e.g. `#heading`
// Empty URLs should not be trailed with `/`, e.g. `#heading`
if (url === '') {
return url
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment