Skip to content

Commit

Permalink
Fix typos: code comment (#41691)
Browse files Browse the repository at this point in the history
## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
hiro0218 and ijjk committed Oct 24, 2022
1 parent 9c07993 commit 6687f28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/shared/lib/router/utils/path-match.ts
Expand Up @@ -22,7 +22,7 @@ interface Options {

/**
* Generates a path matcher function for a given path and options based on
* path-to-regexp. By default the match will be case insesitive, non strict
* path-to-regexp. By default the match will be case insensitive, non strict
* and delimited by `/`.
*/
export function getPathMatch(path: string, options?: Options) {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/shared/lib/router/utils/route-regex.ts
Expand Up @@ -53,7 +53,7 @@ function getParametrizedRoute(route: string) {

/**
* From a normalized route this function generates a regular expression and
* a corresponding groups object inteded to be used to store matching groups
* a corresponding groups object intended to be used to store matching groups
* from the regular expression.
*/
export function getRouteRegex(normalizedRoute: string): RouteRegex {
Expand Down
Expand Up @@ -918,7 +918,7 @@ var focusSvgForeignobjectTabindex = {
element.innerHTML = generate(
'<foreignObject tabindex="-1"><input type="text" /></foreignObject>'
)
// Safari 8's quersSelector() can't identify foreignObject, but getElementyByTagName() can
// Safari 8's querySelector() can't identify foreignObject, but getElementsByTagName() can
return (
element.querySelector('foreignObject') ||
element.getElementsByTagName('foreignObject')[0]
Expand Down

0 comments on commit 6687f28

Please sign in to comment.