chore(i8n,learn): processed translations (#41350)

* chore(i8n,learn): processed translations

* fix: restore deleted test

* fix: revert casing change

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
Nicholas Carrigan (he/him)
2021-03-04 09:49:46 -08:00
committed by GitHub
parent 8e4ada8f2d
commit aff0ea700d
69 changed files with 606 additions and 598 deletions

View File

@ -32,7 +32,7 @@ assert(/cat photos/gi.test($('a').text()));
你的 `a` 元素应链接到 `https://freecatphotoapp.com`
```js
assert(/https:\/\/(www\.)?freecatphotoapp\.com/gi.test($('a').attr('href')));
assert(/^https?:\/\/freecatphotoapp\.com\/?$/i.test($('a').attr('href')));
```
确保 `a` 元素有结束标签。

View File

@ -47,8 +47,7 @@ dashedName: nest-an-anchor-element-within-a-paragraph
```js
assert(
$('a[href="https://freecatphotoapp.com"]').length > 0 ||
$('a[href="http://www.freecatphotoapp.com"]').length > 0
$('a[href="https://freecatphotoapp.com"]').length > 0
);
```
@ -72,8 +71,7 @@ assert($('p') && $('p').length > 2);
```js
assert(
$('a[href="https://freecatphotoapp.com"]').parent().is('p') ||
$('a[href="http://www.freecatphotoapp.com"]').parent().is('p')
$('a[href="https://freecatphotoapp.com"]').parent().is('p')
);
```
@ -84,11 +82,7 @@ assert(
$('a[href="https://freecatphotoapp.com"]')
.parent()
.text()
.match(/View\smore\s/gi) ||
$('a[href="http://www.freecatphotoapp.com"]')
.parent()
.text()
.match(/View\smore\s/gi)
.match(/View\smore\s/gi)
);
```