Skip to content

Commit 7761d24

Browse files
authored
Fix erroneous line break
1 parent 887c779 commit 7761d24

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ setTimeout(() => {
102102
**Bad:**
103103
```javascript
104104
const address = 'One Infinite Loop, Cupertino 95014';
105-
const city
106-
Regex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
105+
const cityStateRegex = /^[^,\\]+[,\\\s]+(.+?)\s*(\d{5})?$/;
107106
saveCityState(address.match(cityStateRegex)[1], address.match(cityStateRegex)[2]);
108107
```
109108

0 commit comments

Comments
 (0)