chore(i18n,learn): processed translations (#45574)
This commit is contained in:
@ -45,13 +45,13 @@ const myFunc = () => "value";
|
||||
应该替换 `var` 关键字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/var/g));
|
||||
assert.notMatch(code, /var/g)
|
||||
```
|
||||
|
||||
`magic` 应该为一个常量(使用 `const`)。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(getUserInput('index').match(/const\s+magic/g));
|
||||
assert.match(code, /const\s+magic/g)
|
||||
```
|
||||
|
||||
`magic` 应该是一个函数 `function`。
|
||||
@ -69,7 +69,7 @@ assert(magic().setHours(0, 0, 0, 0) === new Date().setHours(0, 0, 0, 0));
|
||||
不要使用 `function` 关键字。
|
||||
|
||||
```js
|
||||
(getUserInput) => assert(!getUserInput('index').match(/function/g));
|
||||
assert.notMatch(code, /function/g)
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
Reference in New Issue
Block a user