← 输入框|github.com|刷新
Skip to content

Помилка в прикладах https://uk.javascript.info/regexp-methods#regexp-exec-str #539

Closed

Description

@MaksimPyatak

У вас є помилка в прикладах: в регулярних виразах написано \w а збіги потрібно знайти в рядках де тільки кирилиця.
Я б вніс зміни, але ще погано освоїв github ))
Помилка на цій сторінці [https://uk.javascript.info/regexp-methods#regexp-exec-str]

Activity

  1. SuperMaxusa commented on Aug 10, 2023

    @SuperMaxusa
    Contributor

    Якщо я правильно розумію, то \w обмежується тільки діапазоном символів [A-Za-z0-9_]: https://en.wikipedia.org/wiki/Regular_expression#Character_classes
    Скоріше за все, краще залишити "Hello, world!", як це зроблено в оригінальному перекладі

    test

    Я б вніс зміни, але ще погано освоїв github ))

    Можливо, це допоможе розібратись: https://github.com/firstcontributions/first-contributions/blob/main/translations/README.ua.md :)

  2. dolgachio commented on Aug 21, 2023

    @dolgachio
    Collaborator

    @MaksimPyatak дякую, що помітили, на жаль, в деяких статтях я пропустив це, і воно вже в master.

    Найближчим часом я все вичитаю і виправлю.

  3. dolgachio commented on May 17, 2025

    @dolgachio
    Collaborator

    Це було виправлено в #621

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions