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

Methods of RegExp and String#445

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

Conversation

SamGreenberg
Copy link
Contributor

No description provided.

````warn header="Same global regexp tested repeatedly on different sources may fail"
If we apply the same global regexp to different inputs, it may lead to wrong result, because`regexp.test`call advances `regexp.lastIndex` property, so the search in another string may start from non-zero position.
````warn header="Один і той самий глобальний регулярний вираз, протестований багато разів на різних даних, може помилятись"
Якщо ми застосуємо один і той самий глобальний регулярний вираз до різних вхідних даних, можемо отримати неправильні результати, бо виклик`regexp.test`посуває властивість `regexp.lastIndex`, тож пошук в іншому рядку може початись з позиції, відмінною від нуля.
Copy link
Contributor

Choose a reason for hiding this comment

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

"відмінної"? позиції якої? - "відмінної"

SamGreenberg and tarasyyyk reacted with thumbs up emoji
@tarasyyyktarasyyyk merged commit67130e0 intojavascript-tutorial:masterMay 24, 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

@RiinaViRiinaViRiinaVi left review comments

@tarasyyyktarasyyyktarasyyyk approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@SamGreenberg@javascript-translate-bot@tarasyyyk@RiinaVi

[8]ページ先頭

©2009-2025 Movatter.jp