GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Alternation (OR) | by vladiuskor · Pull Request #388 · javascript-tutorial/uk.javascript.info

Conversation

@vladiuskor

@vladiuskor vladiuskor commented Sep 17, 2022

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
vladiuskor added 2 commits September 17, 2022 22:43
@vladiuskor
Translated article alternation
aaba2b1
@vladiuskor
Added correct apostrophe
29e6279
@javascript-translate-bot javascript-translate-bot added the review needed label Sep 17, 2022
@CLAassistant

CLAassistant commented Sep 17, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dolgachio
dolgachio requested changes Oct 21, 2022
View reviewed changes

@dolgachio dolgachio left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Дякую, за чудовий переклад! Вибачаюсь, що вам довелося так довго чекати :)
Подивіться, будь ласка, мої коментарі і напишіть мені, якщо з чимось не згодні.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 9-regular-expressions/13-regexp-alternation/article.md Outdated
# Альтернація (АБО) |

Alternation is the term in regular expression that is actually a simple "OR".
Альтернація - це термін у регулярному виразі, який насправді є простим "АБО".

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
Альтернація - це термін у регулярному виразі, який насправді є простим "АБО".
Альтернація -- це термін у регулярному виразі, який насправді є простим "АБО".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/article.md Outdated

- `pattern:gr(a|e)y` means exactly the same as `pattern:gr[ae]y`.
- `pattern:gra|ey` means `match:gra` or `match:ey`.
- `pattern:gr(a|e)y` означає те саме, що і `pattern:gr[ae]y`.

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
- `pattern:gr(a|e)y` означає те саме, що і `pattern:gr[ae]y`.
- `pattern:gr(a|e)y` означає те саме, що й `pattern:gr[ae]y`.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/article.md Outdated
To apply alternation to a chosen part of the pattern, we can enclose it in parentheses:
- `pattern:I love HTML|CSS` matches `match:I love HTML` or `match:CSS`.
- `pattern:I love (HTML|CSS)` matches `match:I love HTML` or `match:I love CSS`.
Для того, щоб використати альтернацію до обраної частини шаблону, ми можемо загорнути його у дужки:

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
Для того, щоб використати альтернацію до обраної частини шаблону, ми можемо загорнути його у дужки:
Для того, щоб використати альтернацію з обраною частиною шаблону, ми можемо загорнути його у дужки:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/article.md Outdated
## Приклад: регулярний вираз для часу

In previous articles there was a task to build a regexp for searching time in the form `hh:mm`, for instance `12:00`. But a simple `pattern:\d\d:\d\d` is too vague. It accepts `25:99` as the time (as 99 minutes match the pattern, but that time is invalid).
У попередніх главах було завдання написати регулярний вираз для пошуку часу у форматі `гг:хх`, наприклад `12:00`. Однак простий шаблон `pattern:\d\d:\d\d` недостатньо точний. Він приймає `25:99` як час (99 хвилин підходять до шаблону, однак цей час не є вірним).

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
У попередніх главах було завдання написати регулярний вираз для пошуку часу у форматі `гг:хх`, наприклад `12:00`. Однак простий шаблон `pattern:\d\d:\d\d` недостатньо точний. Він приймає `25:99` як час (99 хвилин підходять до шаблону, однак цей час не є вірним).
У попередніх статтях було завдання написати регулярний вираз для пошуку часу у форматі `гг:хх`, наприклад `12:00`. Однак простий шаблон `pattern:\d\d:\d\d` недостатньо точний. Він приймає `25:99` як час (99 хвилин підходять до шаблону, однак цей час не є вірним).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/article.md Outdated
- (no other first digit is allowed)
- Якщо перша цифра `0` або `1`, тоді наступна може бути будь-якою цифрою: `pattern:[01]\d`.
- В іншому випадку, якщо перша цифра `2`, тоді наступна має бути від 0 до 3 `pattern:[0-3]`.
- (іншої першої цифри не може бути)

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
- (іншої першої цифри не може бути)
- (іншої першої цифри бути не може)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md Outdated

```js
let regexp = /your regexp/flags;
let regexp = /ваш регулярний вираз/прапорець;

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
let regexp = /ваш регулярний вираз/прапорець;
let regexp = /ваш регулярний вираз/прапорці;

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md Outdated
```

If tags are nested, then we need the outer tag (if we want we can continue the search in its content):
Якщо теки вкладені, тоді необхідно шукати зовнішній тег (за бажанням, можна продовжити пошук всередині його вмісту):

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
Якщо теки вкладені, тоді необхідно шукати зовнішній тег (за бажанням, можна продовжити пошук всередині його вмісту):
Якщо теги вкладені, тоді необхідно шукати зовнішній тег (за бажанням, можна продовжити пошук всередині його вмісту):

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md Outdated

```js
let regexp = /your regexp/flags;
let regexp = /ваш регулярний вираз/прапорець;

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
let regexp = /ваш регулярний вираз/прапорець;
let regexp = /ваш регулярний вираз/прапорці;

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/03-match-quoted-string/solution.md Outdated
@@ -1,17 +1,17 @@
The solution: `pattern:/"(\\.|[^"\\])*"/g`.
Вирішення: `pattern:/"(\\.|[^"\\])*"/g`.

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
Вирішення: `pattern:/"(\\.|[^"\\])*"/g`.
Рішення: `pattern:/"(\\.|[^"\\])*"/g`.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread 9-regular-expressions/13-regexp-alternation/03-match-quoted-string/task.md Outdated
Тому нам необхідно шукати від одних лапок до інших, ігноруючи екрановані лапки на нашому шляху.

That's the essential part of the task, otherwise it would be trivial.
У цьому і полягає основна складність завдання, адже без цієї умови - вирішення було б елементарним.

@dolgachio dolgachio Oct 21, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
У цьому і полягає основна складність завдання, адже без цієї умови - вирішення було б елементарним.
У цьому і полягає основна складність завдання, адже без цієї умови -- рішення було б елементарним.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vladiuskor reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@javascript-translate-bot javascript-translate-bot added changes requested and removed review needed labels Oct 21, 2022
@javascript-translate-bot

javascript-translate-bot commented Oct 21, 2022

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vladiuskor
Corrected the translation after review
4610c8b
@vladiuskor

vladiuskor commented Oct 23, 2022

Copy link
Copy Markdown
Contributor Author

/done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@javascript-translate-bot javascript-translate-bot added review needed and removed changes requested labels Oct 23, 2022
@vladiuskor

vladiuskor commented Oct 23, 2022

Copy link
Copy Markdown
Contributor Author

Дякую, за чудовий переклад! Вибачаюсь, що вам довелося так довго чекати :) Подивіться, будь ласка, мої коментарі і напишіть мені, якщо з чимось не згодні.

Дякую за можливість зробити внесок у розвиток чудового ресурсу для україномовної спільноти. Згідний з усіма правками.)

dolgachio reacted with thumbs up emoji tarasyyyk reacted with heart emoji
All reactions
  • 👍 1 reaction
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dolgachio

dolgachio commented Oct 24, 2022

Copy link
Copy Markdown
Collaborator

@all-contributors add @vladiuskor for translation

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@allcontributors allcontributors Bot mentioned this pull request Oct 24, 2022
docs: add vladiuskor as a contributor for translation #410
Merged
@allcontributors

allcontributors Bot commented Oct 24, 2022

Copy link
Copy Markdown
Contributor

@stas-dolgachov

I've put up a pull request to add @vladiuskor! 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dolgachio
dolgachio approved these changes Oct 24, 2022
View reviewed changes
@javascript-translate-bot javascript-translate-bot added needs +1 and removed review needed labels Oct 24, 2022
@dolgachio
dolgachio merged commit 3038d34 into javascript-tutorial:master Oct 24, 2022
@tarasyyyk tarasyyyk mentioned this pull request Aug 29, 2024
Ukrainian Translation Progress #1
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dolgachio dolgachio dolgachio approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs +1

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@vladiuskor @CLAassistant @javascript-translate-bot @dolgachio
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.