mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-15 10:00:47 -04:00
fix(curriculum): require space between variable name and const/let/var (#57739)
This commit is contained in:
@@ -39,7 +39,7 @@ You should not use the assignment operator.
|
||||
|
||||
```js
|
||||
assert(
|
||||
/let\s*myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
|
||||
/let\s+myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user