Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8b16eb

Browse files
Merge pull request #297 from Risto-Mcintosh/patch-1
Fixed a small typo
2 parents e6f9934 + c90b109 commit b8b16eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ saveCityZipCode(
125125
```javascript
126126
const address = "One Infinite Loop, Cupertino 95014";
127127
const cityZipCodeRegex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
128-
const [, city, zipCode] = address.match(cityZipCodeRegex) || [];
128+
const [_, city, zipCode] = address.match(cityZipCodeRegex) || [];
129129
saveCityZipCode(city, zipCode);
130130
```
131131

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /