Test wanted: Unicode RegExp with more than two alternations
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 564
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 10
Description
Code:
'π€π¦πππ¦π€'.match(/π€|π¦|π/gu);
// Or, escaped so the source code consists of ASCII code points only:
'\u{1F364}\u{1F366}\u{1F34B}\u{1F34B}\u{1F366}\u{1F364}'.match(/\u{1F364}|\u{1F366}/gu);
Expected result:
['π€', 'π¦', 'π', 'π', 'π¦', 'π€']
// Or, in escaped form:
['\u{1F364}', '\u{1F366}', '\u{1F34B}', '\u{1F34B}', '\u{1F366}', '\u{1F364}']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up β it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test path is named. Start by running the provided JavaScript in a conforming test environment and inspect how test262 organizes Unicode RegExp tests. Add coverage for the three-alternation match and verify that the result contains all six emoji in order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100