Skip to content

Commit 5f8daa0

Browse files
Fixed a small typo
1 parent dd7e665 commit 5f8daa0

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)