Skip to content

Commit b9ce9fc

Browse files
authored
Fix typos (#42087)
1 parent b19d25f commit b9ce9fc

File tree

1 file changed

+4
-4
lines changed
  • files/en-us/web/api/url_pattern_api

1 file changed

+4
-4
lines changed

files/en-us/web/api/url_pattern_api/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ console.log(result.hostname); // {"groups": {"0": "cdn"}, "input": "cdn.example.
645645

646646
### Accessing matched named group values
647647

648-
The following example shows how groups can be given custom names which can be used to accessed the matched value in the result object.
648+
The following example shows how groups can be given custom names which can be used to access the matched value in the result object.
649649

650650
The match patterns in the pattern are indicated by the `:` symbol followed by a name.
651651
The same names then appear as keys in the `groups` property, with the matching values being the matched part of the test URL.
@@ -734,8 +734,8 @@ console.log(pattern3.test({ pathname: "/product/" })); // true
734734

735735
### Making matching groups repeated
736736

737-
The following example shows how a matching group can be made repeated by placing `+` modifier after it.
738-
In the `pathname` component this also treats the `/` prefix as special, so that it effectively the start of the repeating group.
737+
The following example shows how a matching group can be made repeated by placing a `+` modifier after it.
738+
In the `pathname` component this also treats the `/` prefix as special, so that it is effectively the start of the repeating group.
739739

740740
```js
741741
const pattern = new URLPattern({ pathname: "/product/:action+" });
@@ -803,7 +803,7 @@ console.log(result.hostname);
803803

804804
The following example shows how curly braces can be used to denote fixed text values as optional or repeated without using a matching group.
805805

806-
The pattern below matches either `/product` or `/products/` but because [group delimiter](#group_delimiters) are non-capturing by default, the result is not found in a corresponding match group.
806+
The pattern below matches either `/product` or `/product/` but because [group delimiter](#group_delimiters) are non-capturing by default, the result is not found in a corresponding match group.
807807

808808
```js
809809
const pattern = new URLPattern({ pathname: "/product{/}?" });

0 commit comments

Comments
 (0)