Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Capturing groups#441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

SamGreenberg
Copy link
Contributor

No description provided.

Copy link
Collaborator

@dolgachiodolgachio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Дякую за переклад і ваш внесок! Я додав кілька коментарів до тексту, з вашого боку нічого більше не треба, я сам внесу необхідні зміни


```js run
let str = "GogogoJohn!";
let str = "GogogoІван!";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
let str = "GogogoІван!";
let str = "GogogoJohn!";

alert( result[0] ); // Gogogo John (full match)
alert( result[1] ); // John
alert( result.length ); // 2 (no more items in the array)
alert( result[0] ); // Gogogo Іван (повний збіг)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
alert( result[0] ); // GogogoІван (повний збіг)
alert( result[0] ); // GogogoJohn (повний збіг)

alert( result[1] ); // John
alert( result.length ); // 2 (no more items in the array)
alert( result[0] ); // Gogogo Іван (повний збіг)
alert( result[1] ); // Іван
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
alert( result[1] ); //Іван
alert( result[1] ); //John

alert( result.length ); // 2 (no more items in the array)
alert( result[0] ); // GogogoІван (повний збіг)
alert( result[1] ); //Іван
alert( result.length ); // 2 (інших елементів у масиві нема)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
alert( result.length ); // 2 (інших елементів у масивінема)
alert( result.length ); // 2 (інших елементів у масивінемає)


- The method `str.match` returns capturing groups only without flag `pattern:g`.
- The method `str.matchAll` always returns capturing groups.
- Метод `str.match` повертає групи захоплення лише без прапору `pattern:g`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
- Метод`str.match` повертає групи захоплення лише безпрапору`pattern:g`.
- Метод`str.match` повертає групи захоплення лише безпрапорцю`pattern:g`.

@javascript-translate-bot
Copy link
Contributor

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review 👻

@dolgachio
Copy link
Collaborator

@all-contributors add@SamGreenberg for translation

@allcontributors
Copy link
Contributor

@stas-dolgachov

@SamGreenberg already contributed before to translation

@dolgachiodolgachio merged commit0dc4838 intojavascript-tutorial:masterMar 25, 2023
@javascript-translate-bot
Copy link
Contributor

Thank you 💖 I updated the Progress Issue#1 🎉 🎉 🎉

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dolgachiodolgachiodolgachio approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@SamGreenberg@javascript-translate-bot@dolgachio

[8]ページ先頭

©2009-2025 Movatter.jp