mdn / mdn/browser-compat-data

javascript.regular_expressions.unicode_character_class_escape - Unicode property escapes for different ES versions 2018-2023

Open
#19,631 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data:js
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

There is a compatibility entry for these escapes at javascript.regular_expressions.unicode_character_class_escape.

That is a single entry, but successive ES versions have added more escapes. Examples can be found in the yearly rules of the eslint-plugin-es-x, such as es-x/no-regexp-unicode-property-escapes-2022.

It would be good to have the support for each different set of escapes be available in the database separately.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

Database entries for unicode_character_class_escape_2018, unicode_character_class_escape_2019, etc.

Did you test this? If so, how?

Looked through database files, searched code and issues. Didn't find the information.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Unicode_property_escapes

Do you have anything more you want to share?

The lack of broken-down data by ES version/year is blocking https://github.com/robatwilliams/es-compat/issues/63

I'm not familiar with the use of these escapes, but it was @ota-meshi who implemented the detection rules in https://github.com/eslint-community/eslint-plugin-es-x/pull/26 and https://github.com/eslint-community/eslint-plugin-es-x/pull/65

MDN URL

No response

MDN metadata

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing javascript.regular_expressions.unicode_character_class_escape entry and compare the yearly eslint-plugin-es-x rules linked in the issue, alongside the MDN regular expressions page. Determine the distinct escape sets for ES 2018 onward, then add separate compatibility entries with support data for each set; the database should distinguish the yearly requirements when done.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.