Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emphasize the difference between Javascript and ICU for Unicode properties #26617

Closed
yarusome opened this issue May 6, 2023 · 0 comments · Fixed by #26944
Closed

Emphasize the difference between Javascript and ICU for Unicode properties #26617

yarusome opened this issue May 6, 2023 · 0 comments · Fixed by #26944
Labels
Content:JS JavaScript docs good first issue A good issue for newcomers to get started with.

Comments

@yarusome
Copy link
Contributor

yarusome commented May 6, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape#parameters

What specific section or headline is this issue about?

Parameters

What information was incorrect, unhelpful, or incomplete?

Although the current description:

loneProperty

A lone Unicode property name or value, following the same syntax as value. It specifies the value for the General_Category property, or a binary property name.

does exclude Script values from being used as loneProperty, but using such values alone is valid in ICU and therefore in most common softwares based on it. For developers familiar with ICU but not with the JS Unicode mode, this discrepancy makes it harder to debug.

What did you expect to see?

A few words warning about the discrepancy.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

The references for regular expressions on MDN are of great quality and value. They save me a lot of time during the learning of regular expressions 👍

@yarusome yarusome added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 6, 2023
@github-actions github-actions bot added the Content:JS JavaScript docs label May 6, 2023
@Josh-Cena Josh-Cena added good first issue A good issue for newcomers to get started with. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels May 6, 2023
@Josh-Cena Josh-Cena changed the title Strike the difference between Javascript and ICU for Unicode properties Emphasize the difference between Javascript and ICU for Unicode properties May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs good first issue A good issue for newcomers to get started with.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants